diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2018-05-22 00:22:50 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2018-05-22 00:22:50 +0000 |
commit | 307b919a7c73d6db69ecf704e1fcf555b33cebd6 (patch) | |
tree | 1e5d659c407f807de47c2e1b1063552f083f5011 /regress/usr.bin | |
parent | d4cfd57f4d486c37c4a8507c3974775f5b012a57 (diff) |
Add TEST_SSH_FAIL_FATAL variable, to force all failures to instantly
abort the test. Useful in capturing clean logs for individual failure
cases.
Diffstat (limited to 'regress/usr.bin')
-rw-r--r-- | regress/usr.bin/ssh/test-exec.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/regress/usr.bin/ssh/test-exec.sh b/regress/usr.bin/ssh/test-exec.sh index e1cffbc1fbe..b7b6e05f4e2 100644 --- a/regress/usr.bin/ssh/test-exec.sh +++ b/regress/usr.bin/ssh/test-exec.sh @@ -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. USER=`id -un` @@ -235,7 +235,10 @@ fail () save_debug_log "FAIL: $@" RESULT=1 echo "$@" - + if test "x$TEST_SSH_FAIL_FATAL" != "x" ; then + cleanup + exit $RESULT + fi } fatal () |