From: dtucker Date: Fri, 9 Feb 2018 03:42:57 +0000 (+0000) Subject: Skip sftp-chroot test when SUDO not set instead of fatal(). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=edad22eaeacd6ba62617fe1e0fe05be609fee948;p=openbsd Skip sftp-chroot test when SUDO not set instead of fatal(). --- diff --git a/regress/usr.bin/ssh/sftp-chroot.sh b/regress/usr.bin/ssh/sftp-chroot.sh index 78414474a27..2284765f55a 100644 --- a/regress/usr.bin/ssh/sftp-chroot.sh +++ b/regress/usr.bin/ssh/sftp-chroot.sh @@ -1,4 +1,4 @@ -# $OpenBSD: sftp-chroot.sh,v 1.5 2016/09/26 21:34:38 bluhm Exp $ +# $OpenBSD: sftp-chroot.sh,v 1.6 2018/02/09 03:42:57 dtucker Exp $ # Placed in the Public Domain. tid="sftp in chroot" @@ -8,7 +8,9 @@ FILENAME=testdata_${USER} PRIVDATA=${CHROOT}/${FILENAME} if [ -z "$SUDO" -a ! -w /var/run ]; then - fatal "need SUDO to create file in /var/run, test won't work without" + echo "need SUDO to create file in /var/run, test won't work without" + echo SKIPPED + exit 0 fi $SUDO sh -c "echo mekmitastdigoat > $PRIVDATA" || \