зеркало из https://github.com/github/vitess-gh.git
fixed test.go framework for go cluster tests
Signed-off-by: Ajeet jain <ajeet@planetscale.com>
This commit is contained in:
Родитель
8f1f4c6ce1
Коммит
2580188959
1
test.go
1
test.go
|
@ -167,7 +167,6 @@ func (t *Test) run(dir, dataDir string) ([]byte, error) {
|
|||
if strings.Contains(fmt.Sprintf("%v", t.File), ".go") {
|
||||
testCmd = []string{"tools/e2e_go_test.sh"}
|
||||
testCmd = append(testCmd, t.Args...)
|
||||
testCmd = append(testCmd, "--skip-build", "--keep-logs")
|
||||
} else {
|
||||
testCmd = []string{"test/" + t.File, "-v", "--skip-build", "--keep-logs"}
|
||||
testCmd = append(testCmd, t.Args...)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
source build.env
|
||||
echo "running tests for $1"
|
||||
go test -v $1 -count=1
|
||||
echo "running tests for $@ "
|
||||
go test -v $@ -count=1
|
Загрузка…
Ссылка в новой задаче