[parted-devel] [PATCH 2/2] tests/t1701-rescue-fs wait for the device to appear.
Sebastian Parschauer
sparschauer at suse.de
Fri Mar 17 11:01:20 UTC 2017
On 24.02.2017 22:07, Brian C. Lane wrote:
> After mkpart it needs to wait for the new partition to appear.
> ---
> 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..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
>
Acked-by: Sebastian Parschauer <sparschauer at suse.de>
More information about the parted-devel
mailing list