Blame SOURCES/kvm-iotests-Fix-232-for-LUKS.patch

7711c0
From 7ccfbb9865064e0b41b6acf9e451c6c1471fe86e Mon Sep 17 00:00:00 2001
7711c0
From: John Snow <jsnow@redhat.com>
7711c0
Date: Wed, 20 Mar 2019 16:16:28 +0100
7711c0
Subject: [PATCH 030/163] iotests: Fix 232 for LUKS
7711c0
7711c0
RH-Author: John Snow <jsnow@redhat.com>
7711c0
Message-id: <20190320161631.14841-17-jsnow@redhat.com>
7711c0
Patchwork-id: 84955
7711c0
O-Subject: [RHEL-7.7 qemu-kvm-rhev PATCH 16/19] iotests: Fix 232 for LUKS
7711c0
Bugzilla: 1668956
7711c0
RH-Acked-by: Max Reitz <mreitz@redhat.com>
7711c0
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
7711c0
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
7711c0
7711c0
From: Max Reitz <mreitz@redhat.com>
7711c0
7711c0
With IMGOPTSSYNTAX, $TEST_IMG is useless for this test (it only tests
7711c0
the file-posix protocol driver).  Therefore, if $TEST_IMG_FILE is set,
7711c0
use that instead.
7711c0
7711c0
Because this test requires the file protocol, $TEST_IMG_FILE will always
7711c0
be set if $IMGOPTSSYNTAX is true.
7711c0
7711c0
Signed-off-by: Max Reitz <mreitz@redhat.com>
7711c0
Reviewed-by: John Snow <jsnow@redhat.com>
7711c0
Message-id: 20190210145736.1486-5-mreitz@redhat.com
7711c0
Signed-off-by: Max Reitz <mreitz@redhat.com>
7711c0
(cherry picked from commit c48221aa91d9078b86e23b19484227dc35d71840)
7711c0
Signed-off-by: John Snow <jsnow@redhat.com>
7711c0
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
7711c0
---
7711c0
 tests/qemu-iotests/232 | 4 ++++
7711c0
 1 file changed, 4 insertions(+)
7711c0
7711c0
diff --git a/tests/qemu-iotests/232 b/tests/qemu-iotests/232
7711c0
index de884cd..2ed39d2 100755
7711c0
--- a/tests/qemu-iotests/232
7711c0
+++ b/tests/qemu-iotests/232
7711c0
@@ -70,6 +70,10 @@ size=128M
7711c0
 
7711c0
 _make_test_img $size
7711c0
 
7711c0
+if [ -n "$TEST_IMG_FILE" ]; then
7711c0
+    TEST_IMG=$TEST_IMG_FILE
7711c0
+fi
7711c0
+
7711c0
 echo
7711c0
 echo "=== -drive with read-write image: read-only/auto-read-only combinations ==="
7711c0
 echo
7711c0
-- 
7711c0
1.8.3.1
7711c0