[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH 03/10] iotests: 020: Use TEST_IMG override instead o
From: |
Fam Zheng |
Subject: |
[Qemu-block] [PATCH 03/10] iotests: 020: Use TEST_IMG override instead of "mv" |
Date: |
Wed, 16 Dec 2015 17:54:46 +0800 |
Signed-off-by: Fam Zheng <address@hidden>
---
tests/qemu-iotests/020 | 7 +++++--
tests/qemu-iotests/020.out | 2 +-
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/tests/qemu-iotests/020 b/tests/qemu-iotests/020
index 2f258dc..6625b55 100755
--- a/tests/qemu-iotests/020
+++ b/tests/qemu-iotests/020
@@ -56,6 +56,9 @@ fi
TEST_OFFSETS="0 4294967296"
+TEST_IMG_SAVE="$TEST_IMG"
+TEST_IMG="$TEST_IMG.base"
+
_make_test_img 6G
echo "Filling base image"
@@ -73,7 +76,7 @@ _check_test_img
echo "Creating test image with backing file"
echo
-mv "$TEST_IMG" "$TEST_IMG.base"
+TEST_IMG="$TEST_IMG_SAVE"
_make_test_img -b "$TEST_IMG.base" 6G
echo "Filling test image"
@@ -89,7 +92,7 @@ done
_check_test_img
$QEMU_IMG commit "$TEST_IMG"
-mv "$TEST_IMG.base" "$TEST_IMG"
+TEST_IMG="$TEST_IMG.base"
echo "Reading from the backing file"
echo
diff --git a/tests/qemu-iotests/020.out b/tests/qemu-iotests/020.out
index 134aa29..42f6c1b 100644
--- a/tests/qemu-iotests/020.out
+++ b/tests/qemu-iotests/020.out
@@ -1,5 +1,5 @@
QA output created by 020
-Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=6442450944
+Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=6442450944
Filling base image
=== IO: pattern 0
--
2.4.3
- [Qemu-block] [PATCH 00/10] iotests: Clean up "mv $TEST_IMG $TEST_IMG.XXX", Fam Zheng, 2015/12/16
- [Qemu-block] [PATCH 01/10] iotests: 018: Use TEST_IMG override instead of "mv", Fam Zheng, 2015/12/16
- [Qemu-block] [PATCH 02/10] iotests: 019: Use TEST_IMG override instead of "mv", Fam Zheng, 2015/12/16
- [Qemu-block] [PATCH 03/10] iotests: 020: Use TEST_IMG override instead of "mv",
Fam Zheng <=
- [Qemu-block] [PATCH 04/10] iotests: 024: Use TEST_IMG override instead of "mv", Fam Zheng, 2015/12/16
- [Qemu-block] [PATCH 05/10] iotests: 028: Use TEST_IMG override instead of "mv", Fam Zheng, 2015/12/16
- [Qemu-block] [PATCH 06/10] iotests: 034: Use TEST_IMG override instead of "mv", Fam Zheng, 2015/12/16
- [Qemu-block] [PATCH 07/10] iotests: 037: Use TEST_IMG override instead of "mv", Fam Zheng, 2015/12/16
- [Qemu-block] [PATCH 08/10] iotests: 038: Use TEST_IMG override instead of "mv", Fam Zheng, 2015/12/16
- [Qemu-block] [PATCH 09/10] iotests: 050: Use TEST_IMG override instead of "mv", Fam Zheng, 2015/12/16
- [Qemu-block] [PATCH 10/10] iotests: 095: Use TEST_IMG override instead of "mv", Fam Zheng, 2015/12/16
- Re: [Qemu-block] [PATCH 00/10] iotests: Clean up "mv $TEST_IMG $TEST_IMG.XXX", Max Reitz, 2015/12/18