From ce7a3fd5e2beeee6b0765decb77ba8ee15867342 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Tue, 1 Mar 2016 13:51:54 -0800 Subject: [PATCH] tests: Add wait to t9042 (#1257415) Also make the new disklabel and first partition all in one step to prevent udev problems. Resolves: rhbz#1257415 --- tests/t9042-dos-partition-limit.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/t9042-dos-partition-limit.sh b/tests/t9042-dos-partition-limit.sh index 67ea86d..fb2dd72 100644 --- a/tests/t9042-dos-partition-limit.sh +++ b/tests/t9042-dos-partition-limit.sh @@ -44,8 +44,8 @@ printf '%s\n' "BYT;" \ "1:$((start-2))s:$((n-1))s:$((n-start+2))s:::lba;" \ > exp || fail=1 -parted -s $scsi_dev mklabel msdos || fail=1 -parted -s -a min $scsi_dev mkpart extended $((start-2))s 100% || fail=1 +parted -s -a min $scsi_dev mklabel msdos mkpart extended $((start-2))s 100% || fail=1 +wait_for_dev_to_appear_ ${scsi_dev}1 || fail=1 i=1 while :; do -- 2.5.0