summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrian C. Lane <bcl@redhat.com>2017-02-24 12:12:03 -0800
committerBrian C. Lane <bcl@redhat.com>2017-05-02 09:19:04 -0700
commit8d149b24eb2789fdf00743ef735e0cffde598040 (patch)
tree529c449dd84ae0416f9e091bb5734c127b77545c /tests
parent40e55a0819862d5dbe2098803735f8c48fb30b6d (diff)
downloadparted-8d149b24eb2789fdf00743ef735e0cffde598040.tar.gz
tests/t1701-rescue-fs wait for the device to appear.
After mkpart it needs to wait for the new partition to appear.
Diffstat (limited to 'tests')
-rw-r--r--tests/t1701-rescue-fs.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/t1701-rescue-fs.sh b/tests/t1701-rescue-fs.sh
index 9b726cf..bbf5eac 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=1
mkfs.ext4 ${scsi_dev}1 || { warn_ $ME: mkfs.ext4 failed; fail=1; Exit $fail; }
# remove the partition