]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests/eject: check for root perms at beginning
authorKarel Zak <kzak@redhat.com>
Wed, 14 Jul 2021 08:25:33 +0000 (10:25 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 14 Jul 2021 08:25:33 +0000 (10:25 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/eject/umount

index 2be281ee35ced71312278279b6fe62b6bda0ee18..0a89b022eacf5fd4f71c9016ba257cbf664e3e22 100755 (executable)
@@ -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