From ffa8b415658e6d3ba3836c6e208fe35979de0bf4 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Wed, 8 Apr 2015 22:09:22 -0400 Subject: [PATCH] 5416: Support testargs for go bits, like "services/arv-git-httpd_test=-check.vv". --- jenkins/run-tests.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/jenkins/run-tests.sh b/jenkins/run-tests.sh index 6f5dd38..ef2e40d 100755 --- a/jenkins/run-tests.sh +++ b/jenkins/run-tests.sh @@ -27,6 +27,9 @@ sdk/python_test="--test-suite test.test_keep_locator" Restrict Python SDK tests to the given class apps/workbench_test="TEST=test/integration/pipeline_instances_test.rb" Restrict Workbench tests to the given file +services/arv-git-httpd_test="-check.vv" + Show all log messages, even when tests pass (also works + with services/keepstore_test etc.) ARVADOS_DEBUG=1 Print more debug messages envvar=value Set \$envvar to value. Primarily useful for WORKSPACE, @@ -424,7 +427,16 @@ do_test_once() { timer_reset if [[ "$2" == "go" ]] then - go test ${testargs[$1]} "git.curoverse.com/arvados.git/$1" + if [[ -n "${testargs[$1]}" ]] + then + # "go test -check.vv giturl" doesn't work, but this + # does: + cd "$WORKSPACE/$1" && go test ${testargs[$1]} + else + # The above form gets verbose even when testargs is + # empty, so use this form in such cases: + go test "git.curoverse.com/arvados.git/$1" + fi elif [[ "$2" == "pip" ]] then cd "$WORKSPACE/$1" \ -- 2.30.2