diff options
| author | Richard W.M. Jones <rjones@redhat.com> | 2012-06-18 13:04:46 +0100 |
|---|---|---|
| committer | Richard W.M. Jones <rjones@redhat.com> | 2012-06-18 15:33:04 +0100 |
| commit | 39df80dcc0e485e69048bddbf33c259ce532e50d (patch) | |
| tree | c72031819f3e9434f8050dafe2cfd3029f42b292 /tests/qemu | |
| parent | 4846b84476015874d569c14c2c30fcd71aa4d54c (diff) | |
| download | libguestfs-39df80dcc0e485e69048bddbf33c259ce532e50d.tar.gz libguestfs-39df80dcc0e485e69048bddbf33c259ce532e50d.tar.xz libguestfs-39df80dcc0e485e69048bddbf33c259ce532e50d.zip | |
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
Diffstat (limited to 'tests/qemu')
| -rwxr-xr-x | tests/qemu/qemu-liveness.sh | 2 | ||||
| -rwxr-xr-x | tests/qemu/qemu-snapshot-isolation.sh | 4 |
2 files changed, 3 insertions, 3 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}')" |
