Browse Source

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

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
Gyu-Ho Lee 8 years ago
parent
commit
31912e35b3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      .semaphore.sh

+ 1 - 1
.semaphore.sh

@@ -13,4 +13,4 @@ docker run \
 	gcr.io/etcd-development/etcd-test:go1.9.2 \
 	gcr.io/etcd-development/etcd-test:go1.9.2 \
 	/bin/bash -c "${TEST_OPTS} ./test 2>&1 | tee test-${TEST_SUFFIX}.log"
 	/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