Blame 0113-TEST-30-ISCSI-fix-test-to-run-with-new-iscsi.patch

Harald Hoyer bb31e7
From 0a10d7fc51e181f6e9c4715f563be3861c054a56 Mon Sep 17 00:00:00 2001
Harald Hoyer bb31e7
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer bb31e7
Date: Sat, 15 Aug 2015 13:22:44 +0200
Harald Hoyer bb31e7
Subject: [PATCH] TEST-30-ISCSI: fix test to run with new iscsi
Harald Hoyer bb31e7
Harald Hoyer bb31e7
(cherry picked from commit 836ca3f47eb0b0a4c97ae704b0b9619a00dbfa87)
Harald Hoyer bb31e7
---
Harald Hoyer bb31e7
 test/TEST-30-ISCSI/test.sh | 8 ++++----
Harald Hoyer bb31e7
 1 file changed, 4 insertions(+), 4 deletions(-)
Harald Hoyer bb31e7
Harald Hoyer bb31e7
diff --git a/test/TEST-30-ISCSI/test.sh b/test/TEST-30-ISCSI/test.sh
Harald Hoyer bb31e7
index ffdb77f..fc4bdce 100755
Harald Hoyer bb31e7
--- a/test/TEST-30-ISCSI/test.sh
Harald Hoyer bb31e7
+++ b/test/TEST-30-ISCSI/test.sh
Harald Hoyer bb31e7
@@ -49,7 +49,7 @@ run_client() {
Harald Hoyer bb31e7
         -net nic,macaddr=52:54:00:12:34:00,model=e1000 \
Harald Hoyer bb31e7
         -net nic,macaddr=52:54:00:12:34:01,model=e1000 \
Harald Hoyer bb31e7
         -net socket,connect=127.0.0.1:12330 \
Harald Hoyer bb31e7
-        -append "rw rd.auto rd.retry=20 console=ttyS0,115200n81 selinux=0 rd.debug=0 $DEBUGFAIL $*" \
Harald Hoyer bb31e7
+        -append "rw rd.auto rd.retry=50 console=ttyS0,115200n81 selinux=0 rd.debug=0 $DEBUGFAIL $*" \
Harald Hoyer bb31e7
         -initrd $TESTDIR/initramfs.testing
Harald Hoyer bb31e7
     if ! grep -F -m 1 -q iscsi-OK $TESTDIR/client.img; then
Harald Hoyer bb31e7
 	echo "CLIENT TEST END: $test_name [FAILED - BAD EXIT]"
Harald Hoyer bb31e7
@@ -93,7 +93,7 @@ do_test_run() {
Harald Hoyer bb31e7
                "netroot=iscsi:192.168.50.1::::iqn.2009-06.dracut:target2" \
Harald Hoyer bb31e7
                "rd.iscsi.firmware" \
Harald Hoyer bb31e7
                "rd.iscsi.initiator=$initiator" \
Harald Hoyer bb31e7
-               "rd.waitnet=0 rd.retry=30" \
Harald Hoyer bb31e7
+               "rd.iscsi.waitnet=0" \
Harald Hoyer bb31e7
 	|| return 1
Harald Hoyer bb31e7
 
Harald Hoyer bb31e7
     run_client "netroot=iscsi target1 target2 rd.iscsi.waitnet=0 rd.iscsi.testroute=0" \
Harald Hoyer bb31e7
@@ -104,7 +104,7 @@ do_test_run() {
Harald Hoyer bb31e7
                "netroot=iscsi:192.168.50.1::::iqn.2009-06.dracut:target2" \
Harald Hoyer bb31e7
                "rd.iscsi.firmware" \
Harald Hoyer bb31e7
                "rd.iscsi.initiator=$initiator" \
Harald Hoyer bb31e7
-               "rd.waitnet=0 rd.iscsi.testroute=0 rd.retry=30" \
Harald Hoyer bb31e7
+               "rd.iscsi.waitnet=0 rd.iscsi.testroute=0" \
Harald Hoyer bb31e7
 	|| return 1
Harald Hoyer bb31e7
 
Harald Hoyer bb31e7
     run_client "netroot=iscsi target1 target2 rd.iscsi.waitnet=0 rd.iscsi.testroute=0 default GW" \
Harald Hoyer bb31e7
@@ -115,7 +115,7 @@ do_test_run() {
Harald Hoyer bb31e7
                "netroot=iscsi:192.168.50.1::::iqn.2009-06.dracut:target2" \
Harald Hoyer bb31e7
                "rd.iscsi.firmware" \
Harald Hoyer bb31e7
                "rd.iscsi.initiator=$initiator" \
Harald Hoyer bb31e7
-               "rd.waitnet=0 rd.iscsi.testroute=0 rd.retry=30" \
Harald Hoyer bb31e7
+               "rd.iscsi.waitnet=0 rd.iscsi.testroute=0" \
Harald Hoyer bb31e7
 	|| return 1
Harald Hoyer bb31e7
 
Harald Hoyer bb31e7
     return 0