From 39df80dcc0e485e69048bddbf33c259ce532e50d Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 18 Jun 2012 13:04:46 +0100 Subject: tests: Replace truncate command with 'guestfish sparse'. RHEL 5 didn't have the truncate command, but we can replace: truncate -s SIZE FILE with the roughly equivalent command: guestfish sparse FILE SIZE --- fish/test-add-domain.sh | 5 ++++- fish/test-d.sh | 5 ++++- tests/qemu/qemu-liveness.sh | 2 +- tests/qemu/qemu-snapshot-isolation.sh | 4 ++-- tests/regressions/rhbz690819.sh | 2 +- tests/regressions/rhbz811649.sh | 2 +- 6 files changed, 13 insertions(+), 7 deletions(-) diff --git a/fish/test-add-domain.sh b/fish/test-add-domain.sh index 85937088..749f3bcd 100755 --- a/fish/test-add-domain.sh +++ b/fish/test-add-domain.sh @@ -24,7 +24,10 @@ rm -f test1.img test2.img test3.img test4.img test.xml test.out cwd="$(pwd)" -truncate -s 1M test1.img test2.img test3.img test4.img +./guestfish sparse test1.img 1M +./guestfish sparse test2.img 1M +./guestfish sparse test3.img 1M +./guestfish sparse test4.img 1M # Libvirt test XML, see libvirt.git/examples/xml/test/testnode.xml cat > test.xml < test.xml <