mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
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>
This commit is contained in:
parent
f2bbcd3f7f
commit
71ad761766
2 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue