diff options
author | Fam Zheng <famz@redhat.com> | 2015-12-22 10:49:15 +0800 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2016-01-07 21:30:17 +0100 |
commit | 49557d656c8e36fb15fda5160795c159c0858835 (patch) | |
tree | b19dfcf6b1b44a917374846e931e739d0b973ac2 /tests | |
parent | f19f11896e130f111e0e1e190cb9cded6f627147 (diff) |
iotests: 028: 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-6-git-send-email-famz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/qemu-iotests/028 | 5 | ||||
-rw-r--r-- | tests/qemu-iotests/028.out | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/qemu-iotests/028 b/tests/qemu-iotests/028 index a1f4423d4a..009510d0d1 100755 --- a/tests/qemu-iotests/028 +++ b/tests/qemu-iotests/028 @@ -60,6 +60,9 @@ base_size=$(( image_size - 1024 * 1024 * 1024 )) offset=$(( base_size - 32 * 1024 )) +TEST_IMG_SAVE="$TEST_IMG" +TEST_IMG="$TEST_IMG.base" + _make_test_img $base_size 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" $image_size echo "Filling test image" diff --git a/tests/qemu-iotests/028.out b/tests/qemu-iotests/028.out index 29c9972e2e..279029d8d6 100644 --- a/tests/qemu-iotests/028.out +++ b/tests/qemu-iotests/028.out @@ -1,5 +1,5 @@ QA output created by 028 -Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=3221227008 +Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=3221227008 Filling base image === IO: pattern 195 |