diff options
author | Fam Zheng <famz@redhat.com> | 2015-12-22 10:49:13 +0800 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:28:21 -0600 |
commit | 5f9cc4715c2cd671eff6514ec31e1cc36a677084 (patch) | |
tree | bdca2a496aa9904fa06f89ee8c233ebccd8f7109 /tests | |
parent | 942bb686a6f1c77459f8516aefa1ed41e1f3312c (diff) | |
download | hqemu-5f9cc4715c2cd671eff6514ec31e1cc36a677084.zip hqemu-5f9cc4715c2cd671eff6514ec31e1cc36a677084.tar.gz |
iotests: 020: Use TEST_IMG override instead of "mv"
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 1450752561-9300-4-git-send-email-famz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/qemu-iotests/020 | 7 | ||||
-rw-r--r-- | 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 |