From 416e2fd8b2c4fa11d1d9d3673857ac80e53bc573 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 3 Apr 2017 14:57:09 +0530 Subject: [PATCH 2/6] tests: t1701-rescue-fs.sh: Wait for device to appear Wait for device to appear before trying to create a filesystem in a freshly created partition. Signed-off-by: Sunil Mohan Adapa --- tests/t1701-rescue-fs.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/t1701-rescue-fs.sh b/tests/t1701-rescue-fs.sh index 9b726cf..4e1c981 100644 --- a/tests/t1701-rescue-fs.sh +++ b/tests/t1701-rescue-fs.sh @@ -30,6 +30,7 @@ scsi_dev=$(cat dev-name) || { warn_ "$ME: no ext4 support"; Exit $fail; } parted -s $scsi_dev mklabel msdos mkpart primary ext2 1m 100% +wait_for_dev_to_appear_ ${scsi_dev}1 || fail_ ${scsi_dev}1 did not appear mkfs.ext4 ${scsi_dev}1 || { warn_ $ME: mkfs.ext4 failed; fail=1; Exit $fail; } # remove the partition -- 2.11.0