From: Ruediger Meier Date: Wed, 9 Mar 2016 13:08:03 +0000 (+0000) Subject: tests: hotfix, wait for scsi_debug partion X-Git-Tag: v2.28-rc1~17^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c5fbca17a7a1f6b2520eaf35a3250d2823d2701;p=thirdparty%2Futil-linux.git tests: hotfix, wait for scsi_debug partion 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 --- diff --git a/tests/ts/minix/mkfs b/tests/ts/minix/mkfs index 3f0f83f067..3f2e2baa8a 100755 --- a/tests/ts/minix/mkfs +++ b/tests/ts/minix/mkfs @@ -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