yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
9ae3a8
From 37f496947f6acfc92c7a2d62925b0a8a1ed71a82 Mon Sep 17 00:00:00 2001
9ae3a8
From: Jeffrey Cody <jcody@redhat.com>
9ae3a8
Date: Wed, 20 Nov 2013 19:43:48 +0100
9ae3a8
Subject: [PATCH 05/25] block: qemu-iotests, add quotes to $TEST_IMG usage in 019
9ae3a8
9ae3a8
RH-Author: Jeffrey Cody <jcody@redhat.com>
9ae3a8
Message-id: <5e5cffb85c88a8d5b3d77ac793f8c12f17c12741.1384975172.git.jcody@redhat.com>
9ae3a8
Patchwork-id: 55798
9ae3a8
O-Subject: [RHEL7 qemu-kvm PATCH 05/26] block: qemu-iotests, add quotes to $TEST_IMG usage in 019
9ae3a8
Bugzilla: 879234
9ae3a8
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
9ae3a8
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
RH-Acked-by: Fam Zheng <famz@redhat.com>
9ae3a8
9ae3a8
There were still instances of $TEST_IMG not being properly quoted.
9ae3a8
This was in the usage of a string built up for a 'for' loop; modify
9ae3a8
the loop so we can quote $TEST_IMG properly.
9ae3a8
9ae3a8
Signed-off-by: Jeff Cody <jcody@redhat.com>
9ae3a8
Reviewed-by: Eric Blake <eblake@redhat.com>
9ae3a8
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
9ae3a8
(cherry picked from commit 3cbe3e8d25529ecb4e1838d1c6856e199b3a66d4)
9ae3a8
---
9ae3a8
 tests/qemu-iotests/019 | 6 +++---
9ae3a8
 1 file changed, 3 insertions(+), 3 deletions(-)
9ae3a8
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 tests/qemu-iotests/019 |    6 +++---
9ae3a8
 1 files changed, 3 insertions(+), 3 deletions(-)
9ae3a8
9ae3a8
diff --git a/tests/qemu-iotests/019 b/tests/qemu-iotests/019
9ae3a8
index cd3582c..5bb18d0 100755
9ae3a8
--- a/tests/qemu-iotests/019
9ae3a8
+++ b/tests/qemu-iotests/019
9ae3a8
@@ -90,12 +90,12 @@ mv "$TEST_IMG" "$TEST_IMG.orig"
9ae3a8
 # Test the conversion twice: One test with the old-style -B option and another
9ae3a8
 # one with -o backing_file
9ae3a8
 
9ae3a8
-for backing_option in "-B $TEST_IMG.base" "-o backing_file=$TEST_IMG.base"; do
9ae3a8
+for backing_option in "-B " "-o backing_file="; do
9ae3a8
 
9ae3a8
     echo
9ae3a8
-    echo Testing conversion with $backing_option | _filter_testdir | _filter_imgfmt
9ae3a8
+    echo Testing conversion with $backing_option$TEST_IMG.base | _filter_testdir | _filter_imgfmt
9ae3a8
     echo
9ae3a8
-    $QEMU_IMG convert -O $IMGFMT $backing_option "$TEST_IMG.orig" "$TEST_IMG"
9ae3a8
+    $QEMU_IMG convert -O $IMGFMT $backing_option"$TEST_IMG.base" "$TEST_IMG.orig" "$TEST_IMG"
9ae3a8
 
9ae3a8
     echo "Checking if backing clusters are allocated when they shouldn't"
9ae3a8
     echo
9ae3a8
-- 
9ae3a8
1.7.1
9ae3a8