From ad7db2bb1e943f4d38b05a394226b9cd88a67394 Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Wed, 13 Jun 2018 14:41:17 -0700 Subject: [PATCH] tests/semaphore.test.bash: update Signed-off-by: Gyuho Lee --- tests/semaphore.test.bash | 37 +++++++++++++++++++++++++++---------- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/tests/semaphore.test.bash b/tests/semaphore.test.bash index 45a02f4f4..ee8f8fec3 100755 --- a/tests/semaphore.test.bash +++ b/tests/semaphore.test.bash @@ -5,17 +5,34 @@ if ! [[ "$0" =~ "tests/semaphore.test.bash" ]]; then exit 255 fi -TEST_SUFFIX=$(date +%s | base64 | head -c 15) +<&1 | tee test-${TEST_SUFFIX}.log" - -! egrep "(--- FAIL:|panic: test timed out|appears to have leaked)" -B50 -A10 test-${TEST_SUFFIX}.log +echo "Running tests with" ${TEST_OPTS} +if [ "${TEST_OPTS}" == "PASSES='build grpcproxy'" ]; then + echo "Skip proxy tests for this branch!" + exit 0 +elif [ "${TEST_OPTS}" == "coverage" ]; then + echo "Skip coverage tests for this branch!" + exit 0 +else + sudo HOST_TMP_DIR=/tmp TEST_OPTS="${TEST_OPTS}" make docker-test +fi