semaphore.sh: fail tests with "(--- FAIL:|leak)"

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyu-Ho Lee 2017-11-02 22:40:10 -07:00
parent 3f93d9ae00
commit 31912e35b3

View File

@ -13,4 +13,4 @@ docker run \
gcr.io/etcd-development/etcd-test:go1.9.2 \
/bin/bash -c "${TEST_OPTS} ./test 2>&1 | tee test-${TEST_SUFFIX}.log"
! grep FAIL -A10 -B50 test-${TEST_SUFFIX}.log
! egrep "(--- FAIL:|leak)" -A10 -B50 test-${TEST_SUFFIX}.log