mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
test: fail tests with "--- FAIL:"
To differentiate from gRPC client log "TRANSIENT_FAILURE" Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
41d37fcc51
commit
3f93d9ae00
6
test
6
test
@ -141,7 +141,7 @@ function functional_pass {
|
|||||||
rm -rf ./agent-*
|
rm -rf ./agent-*
|
||||||
|
|
||||||
if [[ "${ETCD_TESTER_EXIT_CODE}" -ne "0" ]]; then
|
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}
|
exit ${ETCD_TESTER_EXIT_CODE}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -211,7 +211,7 @@ function cov_pass {
|
|||||||
# held failures to generate the full coverage file, now fail
|
# held failures to generate the full coverage file, now fail
|
||||||
if [ -n "$failed" ]; then
|
if [ -n "$failed" ]; then
|
||||||
for f in $failed; do
|
for f in $failed; do
|
||||||
echo FAIL "$f"
|
echo "--- FAIL:" "$f"
|
||||||
done
|
done
|
||||||
exit 255
|
exit 255
|
||||||
fi
|
fi
|
||||||
@ -262,7 +262,7 @@ function release_pass {
|
|||||||
set -e
|
set -e
|
||||||
case $result in
|
case $result in
|
||||||
0) ;;
|
0) ;;
|
||||||
*) echo "FAIL with" ${result}
|
*) echo "--- FAIL:" ${result}
|
||||||
exit $result
|
exit $result
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user