summaryrefslogtreecommitdiff
path: root/regress/test-exec.sh
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2021-09-01 00:50:27 +0000
committerDarren Tucker <dtucker@dtucker.net>2021-09-01 11:40:43 +1000
commit8b02ef0f28dc24cda8cbcd8b7eb02bda8f8bbe59 (patch)
treefb2ac7b4d64b8d079962caecb83ca24ae220f352 /regress/test-exec.sh
parentd486845c07324c04240f1674ac513985bd356f66 (diff)
downloadopenssh-git-8b02ef0f28dc24cda8cbcd8b7eb02bda8f8bbe59.tar.gz
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 db6d6161..415422ef 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