From 258018895978dd704b941659f35b28a16e05f196 Mon Sep 17 00:00:00 2001 From: Ajeet jain Date: Fri, 7 Feb 2020 13:35:03 +0530 Subject: [PATCH] fixed test.go framework for go cluster tests Signed-off-by: Ajeet jain --- test.go | 1 - tools/e2e_go_test.sh | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/test.go b/test.go index f5646f407b..b6be41a86e 100755 --- a/test.go +++ b/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...) diff --git a/tools/e2e_go_test.sh b/tools/e2e_go_test.sh index 7f65d17fee..9148d80e15 100755 --- a/tools/e2e_go_test.sh +++ b/tools/e2e_go_test.sh @@ -1,4 +1,4 @@ #!/bin/bash source build.env -echo "running tests for $1" -go test -v $1 -count=1 \ No newline at end of file +echo "running tests for $@ " +go test -v $@ -count=1 \ No newline at end of file