diff options
author | Darren Tucker <dtucker@cvs.openbsd.org> | 2018-02-09 03:42:58 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@cvs.openbsd.org> | 2018-02-09 03:42:58 +0000 |
commit | ce78b610bcc333b5edc3b5e70697f5d8d76d8cfc (patch) | |
tree | 52aec9da386ea2fbb6bffebe24d3abe092f3460b /regress/usr.bin/ssh | |
parent | 60002a29b7711e4c5453fd6eea25e927ed5fa945 (diff) |
Skip sftp-chroot test when SUDO not set instead of fatal().
Diffstat (limited to 'regress/usr.bin/ssh')
-rw-r--r-- | regress/usr.bin/ssh/sftp-chroot.sh | 6 |
1 files changed, 4 insertions, 2 deletions
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" || \ |