[parted-devel] [PATCH 2/2] tests: fix t6100-mdraid-partitions

Sebastian Parschauer sparschauer at suse.de
Tue May 8 14:17:39 BST 2018


On 04.05.2018 16:38, Phillip Susi wrote:
> The test was failing because it didn't wait for the md device
> to appear after creating it.
> ---
>  tests/t6100-mdraid-partitions.sh | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/t6100-mdraid-partitions.sh b/tests/t6100-mdraid-partitions.sh
> index dbb1686..b37cddf 100755
> --- a/tests/t6100-mdraid-partitions.sh
> +++ b/tests/t6100-mdraid-partitions.sh
> @@ -47,6 +47,7 @@ cleanup_fn_() {
>  
>  # create mdraid on top of both partitions
>  mdadm -C $md_dev --force -R -l1 -n2 "${scsi_dev}1" "${scsi_dev}2"
> +wait_for_dev_to_appear_ ${md_dev} || { fail=1; cat /proc/partitions; }
>  
>  # create gpt and two partitions on the raid device
>  parted -s $md_dev mklabel gpt \
> 

LGTM, thanks for spotting and fixing. I also noticed an issue with that
test recently but didn't have the time to debug it.



More information about the parted-devel mailing list