qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

iotests: 018: 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-2-git-send-email-famz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>

authored by

Fam Zheng and committed by
Max Reitz
9b337ae9 0fa296eb

+5 -5
+4 -4
tests/qemu-iotests/018
··· 66 66 echo "Creating test image with backing file" 67 67 echo 68 68 69 - TEST_IMG=$TEST_IMG_SAVE 70 - _make_test_img -b "$TEST_IMG.base" 6G 69 + TEST_IMG="$TEST_IMG_SAVE.orig" 70 + _make_test_img -b "$TEST_IMG_SAVE.base" 6G 71 71 72 72 echo "Filling test image" 73 73 echo ··· 81 81 done 82 82 _check_test_img 83 83 84 - mv "$TEST_IMG" "$TEST_IMG.orig" 85 - $QEMU_IMG convert -O $IMGFMT "$TEST_IMG.orig" "$TEST_IMG" 84 + TEST_IMG="$TEST_IMG_SAVE" 85 + $QEMU_IMG convert -f $IMGFMT -O $IMGFMT "$TEST_IMG.orig" "$TEST_IMG" 86 86 87 87 echo "Reading" 88 88 echo
+1 -1
tests/qemu-iotests/018.out
··· 269 269 No errors were found on the image. 270 270 Creating test image with backing file 271 271 272 - Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=6442450944 backing_file=TEST_DIR/t.IMGFMT.base 272 + Formatting 'TEST_DIR/t.IMGFMT.orig', fmt=IMGFMT size=6442450944 backing_file=TEST_DIR/t.IMGFMT.base 273 273 Filling test image 274 274 275 275 === IO: pattern 1