From 3f93d9ae00afaa8cd3910c106b75957eb3919f59 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Thu, 2 Nov 2017 22:39:34 -0700 Subject: [PATCH] test: fail tests with "--- FAIL:" To differentiate from gRPC client log "TRANSIENT_FAILURE" Signed-off-by: Gyu-Ho Lee --- test | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test b/test index 6c227fda9..ed190b696 100755 --- a/test +++ b/test @@ -141,7 +141,7 @@ function functional_pass { rm -rf ./agent-* if [[ "${ETCD_TESTER_EXIT_CODE}" -ne "0" ]]; then - echo "FAIL with exit code" ${ETCD_TESTER_EXIT_CODE} + echo "--- FAIL: exit code" ${ETCD_TESTER_EXIT_CODE} exit ${ETCD_TESTER_EXIT_CODE} fi } @@ -211,7 +211,7 @@ function cov_pass { # held failures to generate the full coverage file, now fail if [ -n "$failed" ]; then for f in $failed; do - echo FAIL "$f" + echo "--- FAIL:" "$f" done exit 255 fi @@ -262,7 +262,7 @@ function release_pass { set -e case $result in 0) ;; - *) echo "FAIL with" ${result} + *) echo "--- FAIL:" ${result} exit $result ;; esac