qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH][qemu-iotests] filter IMGFMT correctly in 019
@ 2010-11-24 15:38 Stefan Hajnoczi
  2010-11-24 16:16 ` [Qemu-devel] " Christoph Hellwig
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Hajnoczi @ 2010-11-24 15:38 UTC (permalink / raw)
  To: qemu-devel; +Cc: Christoph Hellwig, Stefan Hajnoczi

Test 019 can be run with qcow2 and qed image formats.  Replace the
specific image format value with "IMGFMT" so the golden output does not
hardcode qcow2 or qed.

This patch also includes a typo fix for "occurrences".

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 019           |    2 +-
 019.out       |    4 ++--
 common.filter |    8 +++++++-
 3 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/019 b/019
index 4c82be2..a2d67c3 100755
--- a/019
+++ b/019
@@ -92,7 +92,7 @@ mv $TEST_IMG $TEST_IMG.orig
 for backing_option in "-B $TEST_IMG.base" "-o backing_file=$TEST_IMG.base"; do
 
     echo
-    echo Testing conversion with $backing_option | _filter_testdir
+    echo Testing conversion with $backing_option | _filter_testdir | _filter_imgfmt
     echo
     $QEMU_IMG convert -O $IMGFMT $backing_option $TEST_IMG.orig $TEST_IMG
 
diff --git a/019.out b/019.out
index d3913df..63bdd54 100644
--- a/019.out
+++ b/019.out
@@ -538,7 +538,7 @@ qemu-io> wrote 65536/65536 bytes at offset 4296146944
 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 qemu-io> No errors were found on the image.
 
-Testing conversion with -B TEST_DIR/t.qcow2.base
+Testing conversion with -B TEST_DIR/t.IMGFMT.base
 
 Checking if backing clusters are allocated when they shouldn't
 
@@ -1082,7 +1082,7 @@ qemu-io> read 65536/65536 bytes at offset 4296343552
 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 qemu-io> No errors were found on the image.
 
-Testing conversion with -o backing_file=TEST_DIR/t.qcow2.base
+Testing conversion with -o backing_file=TEST_DIR/t.IMGFMT.base
 
 Checking if backing clusters are allocated when they shouldn't
 
diff --git a/common.filter b/common.filter
index da55f54..da77ede 100644
--- a/common.filter
+++ b/common.filter
@@ -128,12 +128,18 @@ _filter_date()
 	-e 's/[A-Z][a-z][a-z] [A-z][a-z][a-z]  *[0-9][0-9]* [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [0-9][0-9][0-9][0-9]$/DATE/'
 }
 
-# replace occurances of the actual TEST_DIR value with TEST_DIR
+# replace occurrences of the actual TEST_DIR value with TEST_DIR
 _filter_testdir()
 {
     sed -e "s#$TEST_DIR#TEST_DIR#g"
 }
 
+# replace occurrences of the actual IMGFMT value with IMGFMT
+_filter_imgfmt()
+{
+    sed -e "s#$IMGFMT#IMGFMT#g"
+}
+
 # sanitize qemu-io output
 _filter_qemu_io()
 {
-- 
1.7.2.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Qemu-devel] Re: [PATCH][qemu-iotests] filter IMGFMT correctly in 019
  2010-11-24 15:38 [Qemu-devel] [PATCH][qemu-iotests] filter IMGFMT correctly in 019 Stefan Hajnoczi
@ 2010-11-24 16:16 ` Christoph Hellwig
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2010-11-24 16:16 UTC (permalink / raw)
  To: Stefan Hajnoczi; +Cc: qemu-devel, Christoph Hellwig

On Wed, Nov 24, 2010 at 03:38:46PM +0000, Stefan Hajnoczi wrote:
> Test 019 can be run with qcow2 and qed image formats.  Replace the
> specific image format value with "IMGFMT" so the golden output does not
> hardcode qcow2 or qed.
> 
> This patch also includes a typo fix for "occurrences".

Thanks, applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-24 16:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-24 15:38 [Qemu-devel] [PATCH][qemu-iotests] filter IMGFMT correctly in 019 Stefan Hajnoczi
2010-11-24 16:16 ` [Qemu-devel] " Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).