From: Karel Zak Date: Wed, 14 Jul 2021 08:25:33 +0000 (+0200) Subject: tests/eject: check for root perms at beginning X-Git-Tag: v2.38-rc1~377 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4ca2ee33b4193af7629ff93d47cec1311f3b8b89;p=thirdparty%2Futil-linux.git tests/eject: check for root perms at beginning Signed-off-by: Karel Zak --- diff --git a/tests/ts/eject/umount b/tests/ts/eject/umount index 2be281ee35..0a89b022ea 100755 --- a/tests/ts/eject/umount +++ b/tests/ts/eject/umount @@ -6,12 +6,13 @@ TS_DESC="umount" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_skip_nonroot + ts_check_test_command "$TS_CMD_FDISK" ts_check_test_command "$TS_CMD_EJECT" ts_check_test_command "$TS_CMD_KILL" ts_check_test_command "$TS_CMD_MOUNT" -ts_skip_nonroot ts_check_prog "mkfs.ext2" # scsi_debug could not eject for kernel >=3.19 and <4.4