Browse Source

Merge pull request #9843 from gyuho/semaphore-proxy

tests: run proxy tests in Semaphore
Gyuho Lee 7 years ago
parent
commit
5277105e1c
1 changed files with 7 additions and 3 deletions
  1. 7 3
      tests/semaphore.test.bash

+ 7 - 3
tests/semaphore.test.bash

@@ -7,15 +7,19 @@ fi
 
 TEST_SUFFIX=$(date +%s | base64 | head -c 15)
 
-TEST_OPTS="PASSES='build release e2e' MANUAL_VER=v3.3.7"
-if [ "$TEST_ARCH" == "386" ]; then
+if [ -z "${TEST_OPTS}" ]; then
+	TEST_OPTS="PASSES='build release e2e' MANUAL_VER=v3.3.7"
+fi
+if [ "${TEST_ARCH}" == "386" ]; then
   TEST_OPTS="GOARCH=386 PASSES='build e2e'"
 fi
 
+echo "Running tests with" ${TEST_OPTS}
+
 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:|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