]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: Add TEST_SSH_FAIL_FATAL variable, to force all failures
authordjm@openbsd.org <djm@openbsd.org>
Tue, 22 May 2018 00:22:49 +0000 (00:22 +0000)
committerDamien Miller <djm@mindrot.org>
Fri, 1 Jun 2018 04:24:08 +0000 (14:24 +1000)
to instantly abort the test. Useful in capturing clean logs for individual
failure cases.

OpenBSD-Regress-ID: feba18cf338c2328b9601bd4093cabdd9baa3af1

regress/test-exec.sh

index b6169f15703ab1be4def7145c706e767ba037d37..a314a57b4ebef7ea2f25e6fde810bcc5b92b8def 100644 (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.
 
 #SUDO=sudo
@@ -375,7 +375,10 @@ fail ()
        save_debug_log "FAIL: $@"
        RESULT=1
        echo "$@"
-
+       if test "x$TEST_SSH_FAIL_FATAL" != "x" ; then
+               cleanup
+               exit $RESULT
+       fi
 }
 
 fatal ()