summaryrefslogtreecommitdiffstats
path: root/regress/test-exec.sh
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2021-09-01 02:50:27 +0200
committerDarren Tucker <dtucker@dtucker.net>2021-09-01 03:40:43 +0200
commit8b02ef0f28dc24cda8cbcd8b7eb02bda8f8bbe59 (patch)
treefb2ac7b4d64b8d079962caecb83ca24ae220f352 /regress/test-exec.sh
parentupstream: Specify path to PuTTY keys. (diff)
downloadopenssh-8b02ef0f28dc24cda8cbcd8b7eb02bda8f8bbe59.tar.xz
openssh-8b02ef0f28dc24cda8cbcd8b7eb02bda8f8bbe59.zip
upstream: Add a function to skip remaining tests.
Many tests skip tests for various reasons but not in a consistent way and don't always clean up, so add that and switch the tests that do that over. OpenBSD-Regress-ID: 72d2ec90a3ee8849486956a808811734281af735
Diffstat (limited to 'regress/test-exec.sh')
-rw-r--r--regress/test-exec.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index db6d6161a..415422ef5 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: test-exec.sh,v 1.86 2021/08/08 08:27:28 dtucker Exp $
+# $OpenBSD: test-exec.sh,v 1.87 2021/09/01 00:50:27 dtucker Exp $
# Placed in the Public Domain.
#SUDO=sudo
@@ -462,6 +462,14 @@ fatal ()
exit $RESULT
}
+# Skip remaining tests in script.
+skip ()
+{
+ echo "SKIPPED: $@"
+ cleanup
+ exit $RESULT
+}
+
RESULT=0
PIDFILE=$OBJ/pidfile