]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: Use "skip" instead of "fatal"
authordtucker@openbsd.org <dtucker@openbsd.org>
Thu, 30 Sep 2021 04:22:50 +0000 (04:22 +0000)
committerDarren Tucker <dtucker@dtucker.net>
Fri, 1 Oct 2021 04:55:12 +0000 (14:55 +1000)
if SUDO isn't set for the *-command tests. This means running "make tests"
without SUDO set will perform all of the tests that it can instead of
failing on the ones it cannot run.

OpenBSD-Regress-ID: bd4dbbb02f34b2e8c890558ad4a696248def763a

regress/keys-command.sh
regress/principals-command.sh

index a3acf5e4d905ae303b8d0ddc187e23cd2fd60637..5feec172b45df783498b92d81881fd7fa84e43fd 100644 (file)
@@ -1,12 +1,10 @@
-#      $OpenBSD: keys-command.sh,v 1.7 2021/09/01 00:50:27 dtucker Exp $
+#      $OpenBSD: keys-command.sh,v 1.8 2021/09/30 04:22:50 dtucker Exp $
 #      Placed in the Public Domain.
 
 tid="authorized keys from command"
 
 if [ -z "$SUDO" -a ! -w /var/run ]; then
-       echo "skipped (SUDO not set)"
-       echo "need SUDO to create file in /var/run, test won't work without"
-       exit 0
+       skip "need SUDO to create file in /var/run, test won't work without"
 fi
 
 rm -f $OBJ/keys-command-args
index 5e535c133464d5e359348d639f2a7df8ecb1fdd6..a808f9c359fb6a96102e5f44bdcc3f2d549ee46f 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: principals-command.sh,v 1.11 2019/12/16 02:39:05 djm Exp $
+#      $OpenBSD: principals-command.sh,v 1.12 2021/09/30 04:22:50 dtucker Exp $
 #      Placed in the Public Domain.
 
 tid="authorized principals command"
@@ -7,9 +7,7 @@ rm -f $OBJ/user_ca_key* $OBJ/cert_user_key*
 cp $OBJ/sshd_proxy $OBJ/sshd_proxy_bak
 
 if [ -z "$SUDO" -a ! -w /var/run ]; then
-       echo "skipped (SUDO not set)"
-       echo "need SUDO to create file in /var/run, test won't work without"
-       exit 0
+       skip "need SUDO to create file in /var/run, test won't work without"
 fi
 
 case "$SSH_KEYTYPES" in