]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: hotfix, wait for scsi_debug partion
authorRuediger Meier <rudi@debian-amd64>
Wed, 9 Mar 2016 13:08:03 +0000 (13:08 +0000)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Wed, 9 Mar 2016 13:12:19 +0000 (14:12 +0100)
Maybe we shouldn't use scsi_debug's num_parts=1 but fdisk to
add a partion. This seems to work better with udevadm settle.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests/ts/minix/mkfs

index 3f0f83f06757c976303c4143c83d9ae4cda912f4..3f2e2baa8ae89fd79a892d73ada2bfa7a2770625 100755 (executable)
@@ -24,10 +24,13 @@ ts_check_test_command "$TS_CMD_MKMINIX"
 ts_skip_nonroot
 
 ts_scsi_debug_init dev_size_mb=10 num_parts=1
+dev=${TS_DEVICE}1
+
+# hotfix, wait for partition to appear (slow on Debian 7/linux-3.2)
+test -b $dev || sleep 1
 
 mkfs_and_mount_minix() {
        ts_init_subtest $1
-       dev=${TS_DEVICE}1
        ts_log "create minix fs $2"
        $TS_CMD_MKMINIX $2 $dev >> $TS_OUTPUT 2>&1
        echo "mkfs return value: $?" >> $TS_OUTPUT