From 1c100a251bf9d4897a078da1016c2cf9a8a4e4e7 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Tue, 20 Apr 2010 11:04:14 +0100 Subject: [PATCH] Replace 'dd' in tests with use of guestfish 'sparse' command. 'dd' is a very inefficient way to create files. 'truncate' is better, but unfortunately that command is not available in RHEL 5. So use the guestfish 'sparse' command instead (which also avoids allocating disk space). (cherry picked from commit 175c01d2336c07113f1c2966966957de5c344e3a) --- regressions/rhbz503169c10.sh | 4 ++-- regressions/rhbz503169c13.sh | 4 ++-- regressions/test-bootbootboot.sh | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/regressions/rhbz503169c10.sh b/regressions/rhbz503169c10.sh index 0a32749..a975f69 100755 --- a/regressions/rhbz503169c10.sh +++ b/regressions/rhbz503169c10.sh @@ -22,9 +22,9 @@ set -e rm -f test1.img -dd if=/dev/zero of=test1.img bs=1024k count=10 -../fish/guestfish -a test1.img <