upstream: Add TEST_SSH_FAIL_FATAL variable, to force all failures

to instantly abort the test. Useful in capturing clean logs for individual
failure cases.

OpenBSD-Regress-ID: feba18cf338c2328b9601bd4093cabdd9baa3af1
This commit is contained in:
djm@openbsd.org 2018-05-22 00:22:49 +00:00 committed by Damien Miller
parent 065c8c055d
commit 76f314c75d
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: test-exec.sh,v 1.62 2018/03/16 09:06:31 dtucker Exp $ # $OpenBSD: test-exec.sh,v 1.63 2018/05/22 00:22:49 djm Exp $
# Placed in the Public Domain. # Placed in the Public Domain.
#SUDO=sudo #SUDO=sudo
@ -375,7 +375,10 @@ fail ()
save_debug_log "FAIL: $@" save_debug_log "FAIL: $@"
RESULT=1 RESULT=1
echo "$@" echo "$@"
if test "x$TEST_SSH_FAIL_FATAL" != "x" ; then
cleanup
exit $RESULT
fi
} }
fatal () fatal ()