summary refs log tree commit diff stats
path: root/tests/qemu-iotests/018
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qemu-iotests/018')
-rwxr-xr-xtests/qemu-iotests/0184
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/qemu-iotests/018 b/tests/qemu-iotests/018
index bd2db78715..453ce61e75 100755
--- a/tests/qemu-iotests/018
+++ b/tests/qemu-iotests/018
@@ -46,6 +46,8 @@ _supported_os Linux
 
 TEST_OFFSETS="0 4294967296"
 
+TEST_IMG_SAVE=$TEST_IMG
+TEST_IMG=$TEST_IMG.base
 _make_test_img 6G
 
 echo "Filling base image"
@@ -63,7 +65,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"