]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: wipefs fix, ts_init was called too late
authorRuediger Meier <ruediger.meier@ga-group.nl>
Thu, 17 Dec 2015 15:56:14 +0000 (16:56 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 5 Jan 2016 11:28:17 +0000 (12:28 +0100)
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests/ts/wipefs/wipefs

index d4726782721e704d20c40db06ba1840234cc0906..2a296df78d55888d038bd45de330fae2fe1190c9 100755 (executable)
@@ -4,11 +4,12 @@ TS_TOPDIR="${0%/*}/../.."
 TS_DESC="wipefs"
 
 . $TS_TOPDIR/functions.sh
-ts_skip_nonroot
 ts_init "$*"
 
 ts_check_test_command "$TS_CMD_WIPEFS"
 
+ts_skip_nonroot
+
 # set global variable TS_DEVICE
 ts_scsi_debug_init dev_size_mb=50 num_parts=2