Skip to content

Commit

Permalink
iotests: 095: Use TEST_IMG override instead of "mv"
Browse files Browse the repository at this point in the history
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 1450752561-9300-11-git-send-email-famz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
  • Loading branch information
Fam Zheng authored and XanClic committed Jan 7, 2016
1 parent ae7e0bf commit 61b4222
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions tests/qemu-iotests/095
Expand Up @@ -50,11 +50,9 @@ _supported_os Linux
size_smaller=5M
size_larger=100M

_make_test_img $size_smaller
mv "${TEST_IMG}" "${TEST_IMG}.base"
TEST_IMG="$TEST_IMG.base" _make_test_img $size_smaller

_make_test_img -b "${TEST_IMG}.base" $size_larger
mv "${TEST_IMG}" "${TEST_IMG}.snp1"
TEST_IMG="$TEST_IMG.snp1" _make_test_img -b "$TEST_IMG.base" $size_larger

_make_test_img -b "${TEST_IMG}.snp1" $size_larger

Expand Down
4 changes: 2 additions & 2 deletions tests/qemu-iotests/095.out
@@ -1,6 +1,6 @@
QA output created by 095
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=5242880
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=104857600 backing_file=TEST_DIR/t.IMGFMT.base
Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=5242880
Formatting 'TEST_DIR/t.IMGFMT.snp1', fmt=IMGFMT size=104857600 backing_file=TEST_DIR/t.IMGFMT.base
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=104857600 backing_file=TEST_DIR/t.IMGFMT.snp1

=== Base image info before commit and resize ===
Expand Down

0 comments on commit 61b4222

Please sign in to comment.