summaryrefslogtreecommitdiffstats
path: root/tests/ts/wipefs
diff options
context:
space:
mode:
authorRuediger Meier2015-12-17 16:56:14 +0100
committerKarel Zak2016-01-05 12:28:17 +0100
commit0e0c823874c325a65293e1fdab9e6f965b7e0552 (patch)
treef9962c22b54b5bb920de98fffbdbc3982b462873 /tests/ts/wipefs
parenttests: fix run.sh --parallel=1 (diff)
downloadkernel-qcow2-util-linux-0e0c823874c325a65293e1fdab9e6f965b7e0552.tar.gz
kernel-qcow2-util-linux-0e0c823874c325a65293e1fdab9e6f965b7e0552.tar.xz
kernel-qcow2-util-linux-0e0c823874c325a65293e1fdab9e6f965b7e0552.zip
tests: wipefs fix, ts_init was called too late
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'tests/ts/wipefs')
-rwxr-xr-xtests/ts/wipefs/wipefs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ts/wipefs/wipefs b/tests/ts/wipefs/wipefs
index d47267827..2a296df78 100755
--- a/tests/ts/wipefs/wipefs
+++ b/tests/ts/wipefs/wipefs
@@ -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