summaryrefslogtreecommitdiffstats
path: root/tests/regressions
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-06-18 13:04:46 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-06-18 15:33:04 +0100
commit39df80dcc0e485e69048bddbf33c259ce532e50d (patch)
treec72031819f3e9434f8050dafe2cfd3029f42b292 /tests/regressions
parent4846b84476015874d569c14c2c30fcd71aa4d54c (diff)
downloadlibguestfs-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/regressions')
-rwxr-xr-xtests/regressions/rhbz690819.sh2
-rwxr-xr-xtests/regressions/rhbz811649.sh2
2 files changed, 2 insertions, 2 deletions
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
diff --git a/tests/regressions/rhbz811649.sh b/tests/regressions/rhbz811649.sh
index b8a101c0..cc0b8a1a 100755
--- a/tests/regressions/rhbz811649.sh
+++ b/tests/regressions/rhbz811649.sh
@@ -36,7 +36,7 @@ filenames[5]='-hda'
rm -f -- test1.img "${filenames[@]}"
-truncate -s 10M test1.img
+../../fish/guestfish sparse test1.img 10M
for f in "${filenames[@]}"; do
ln -- test1.img "$f"