summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/qemu/qemu-liveness.sh2
-rwxr-xr-xtests/qemu/qemu-snapshot-isolation.sh4
-rwxr-xr-xtests/regressions/rhbz690819.sh2
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/qemu/qemu-liveness.sh b/tests/qemu/qemu-liveness.sh
index 945b2a29..d95321c7 100755
--- a/tests/qemu/qemu-liveness.sh
+++ b/tests/qemu/qemu-liveness.sh
@@ -24,7 +24,7 @@ set -e
rm -f test1.img
-truncate -s 100M test1.img
+../../fish/guestfish sparse test1.img 100M
test1_md5sum="$(md5sum test1.img | awk '{print $1}')"
../../fish/guestfish <<'EOF'
diff --git a/tests/qemu/qemu-snapshot-isolation.sh b/tests/qemu/qemu-snapshot-isolation.sh
index 70b68392..17e3bab4 100755
--- a/tests/qemu/qemu-snapshot-isolation.sh
+++ b/tests/qemu/qemu-snapshot-isolation.sh
@@ -24,9 +24,9 @@ set -e
rm -f test1.img test2.img test3.img
-truncate -s 100M test1.img
+../../fish/guestfish sparse test1.img 100M
test1_md5sum="$(md5sum test1.img | awk '{print $1}')"
-truncate -s 100M test2.img
+../../fish/guestfish sparse test2.img 100M
test2_md5sum="$(md5sum test2.img | awk '{print $1}')"
qemu-img create -f qcow2 test3.img 100M
test3_md5sum="$(md5sum test3.img | awk '{print $1}')"
diff --git a/tests/regressions/rhbz690819.sh b/tests/regressions/rhbz690819.sh
index ff4430f9..9d8e38ca 100755
--- a/tests/regressions/rhbz690819.sh
+++ b/tests/regressions/rhbz690819.sh
@@ -37,7 +37,7 @@ export LANG=C
rm -f test.img
-truncate -s 100M test.img
+../../fish/guestfish sparse test.img 100M
../../fish/guestfish <<EOF
add-drive-with-if test.img ide