Blame SOURCES/0027-tests-Add-wait-to-t9042-1257415.patch

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