From bf34c6a13bafc5c5d20aed5093e737cf916f65aa Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Wed, 13 Jun 2018 13:21:08 -0700 Subject: [PATCH] tests: run coverage tests in Semaphore Signed-off-by: Gyuho Lee --- tests/semaphore.test.bash | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/tests/semaphore.test.bash b/tests/semaphore.test.bash index 32d2717c8..ac6a54da3 100755 --- a/tests/semaphore.test.bash +++ b/tests/semaphore.test.bash @@ -5,6 +5,20 @@ if ! [[ "$0" =~ "tests/semaphore.test.bash" ]]; then exit 255 fi +<&1 | tee test-${TEST_SUFFIX}.log" -docker run \ - --rm \ - --volume=`pwd`:/go/src/github.com/coreos/etcd \ - gcr.io/etcd-development/etcd-test:go1.10.3 \ - /bin/bash -c "${TEST_OPTS} ./test 2>&1 | tee test-${TEST_SUFFIX}.log" - -! egrep "(--- FAIL:|DATA RACE|panic: test timed out|appears to have leaked)" -B50 -A10 test-${TEST_SUFFIX}.log + ! egrep "(--- FAIL:|DATA RACE|panic: test timed out|appears to have leaked)" -B50 -A10 test-${TEST_SUFFIX}.log +fi