Skip to content

Commit

Permalink
Fixes tests (#3594)
Browse files Browse the repository at this point in the history
* Bump golang.org/x/net from 0.10.0 to 0.23.0 in /src/apps/chifra (#3589)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.10.0 to 0.23.0.
- [Commits](golang/net@v0.10.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Updating all tests cases to best version yet

* Cleaning

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
tjayrush and dependabot[bot] authored Apr 20, 2024
1 parent dd1527b commit aebf2ba
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
9 changes: 6 additions & 3 deletions src/dev_tools/testRunner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -461,12 +461,15 @@ func getGeneratedPath() string {
}

func getWorkingPath() string {
return "../tests/working/"
// return filepath.Join(getRepoRoot(), "tests/working") + "/"
return filepath.Join(getRepoRoot(), "tests/working") + "/"
}

func getTempFilePath(goldFn string) string {
return filepath.Join(getRepoRoot(), "build", filepath.Base(goldFn)) + ".tmp"
}

func getLogFile(mode string) string {
return "../src/dev_tools/testRunner/generated/test_" + mode + ".log"
return getGeneratedPath() + "test_" + mode + ".log"
}

func loadTestCases() (map[string][]TestCase, string, error) {
Expand Down
6 changes: 4 additions & 2 deletions src/dev_tools/testRunner/run_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ import (

func (t *TestCase) CmdTest() (string, error) {
_, goldFn, envFn, outputFn := t.GetOutputPaths("cmd")
tmpFn := goldFn + ".tmp"
// tmpFn := goldFn + ".tmp"
tmpFn := getTempFilePath(goldFn)
// fmt.Println(tmpFn)
defer func() {
os.Remove(tmpFn)
}()
Expand All @@ -32,7 +34,7 @@ func (t *TestCase) CmdTest() (string, error) {
cmd += t.Route + " "
}
cmd += t.CmdOptions + " "
cmd += ">" + (filepath.Base(tmpFn)) + " "
cmd += ">" + tmpFn + " "
cmd += "2>&1"
utils.System(cmd)
contents := file.AsciiFileToString(tmpFn)
Expand Down
2 changes: 1 addition & 1 deletion tests
Submodule tests updated 4087 files

0 comments on commit aebf2ba

Please sign in to comment.