.semaphore.sh 574 B

12345678910111213141516
  1. #!/usr/bin/env bash
  2. TEST_SUFFIX=$(date +%s | base64 | head -c 15)
  3. TEST_OPTS="RELEASE_TEST=y INTEGRATION=y PASSES='build unit release integration_e2e functional' MANUAL_VER=v3.3.0-rc.0"
  4. if [ "$TEST_ARCH" == "386" ]; then
  5. TEST_OPTS="GOARCH=386 PASSES='build unit integration_e2e'"
  6. fi
  7. docker run \
  8. --rm \
  9. --volume=`pwd`:/go/src/github.com/coreos/etcd \
  10. gcr.io/etcd-development/etcd-test:go1.9.2 \
  11. /bin/bash -c "${TEST_OPTS} ./test 2>&1 | tee test-${TEST_SUFFIX}.log"
  12. ! egrep "(--- FAIL:|panic: test timed out|appears to have leaked)" -B50 -A10 test-${TEST_SUFFIX}.log