]> git.pld-linux.org Git - packages/parted.git/blob - 0077-tests-t1701-rescue-fs-wait-for-the-device-to-appear.patch
- release 6 (by relup.sh)
[packages/parted.git] / 0077-tests-t1701-rescue-fs-wait-for-the-device-to-appear.patch
1 From 1eb7c40bcf7aeb359e9e605ebf2ae7e4a602a23c Mon Sep 17 00:00:00 2001
2 From: "Brian C. Lane" <bcl@redhat.com>
3 Date: Fri, 24 Feb 2017 12:12:03 -0800
4 Subject: [PATCH 77/77] tests/t1701-rescue-fs wait for the device to appear.
5
6 After mkpart it needs to wait for the new partition to appear.
7
8 (cherry picked from commit 8d149b24eb2789fdf00743ef735e0cffde598040)
9 ---
10  tests/t1701-rescue-fs.sh | 1 +
11  1 file changed, 1 insertion(+)
12
13 diff --git a/tests/t1701-rescue-fs.sh b/tests/t1701-rescue-fs.sh
14 index 9b726cf..bbf5eac 100644
15 --- a/tests/t1701-rescue-fs.sh
16 +++ b/tests/t1701-rescue-fs.sh
17 @@ -30,6 +30,7 @@ scsi_dev=$(cat dev-name)
18      || { warn_ "$ME: no ext4 support"; Exit $fail; }
19  
20  parted -s $scsi_dev mklabel msdos mkpart primary ext2 1m 100%
21 +wait_for_dev_to_appear_ ${scsi_dev}1 || fail=1
22  mkfs.ext4 ${scsi_dev}1 || { warn_ $ME: mkfs.ext4 failed; fail=1; Exit $fail; }
23  
24  # remove the partition
25 -- 
26 2.9.3
27
This page took 0.054887 seconds and 3 git commands to generate.