[PATCH 7/8] tests: t0000-basic.sh: minor correction
Jim Meyering
meyering at redhat.com
Fri Nov 13 12:47:29 UTC 2009
* tests/t0000-basic.sh: When zeroing out the first sector,
use dd's conv=notrunc. Otherwise, we'd also truncate the
backing file size to 4KiB.
---
tests/t0000-basic.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/t0000-basic.sh b/tests/t0000-basic.sh
index 1e0f7ca..43103d2 100755
--- a/tests/t0000-basic.sh
+++ b/tests/t0000-basic.sh
@@ -49,7 +49,7 @@ test_expect_success 'expect no output' 'compare out /dev/null'
test_expect_success \
'erase the left-over label' \
- 'dd if=/dev/zero of=$dev bs=4K count=1 2> /dev/null'
+ 'dd if=/dev/zero of=$dev bs=4K count=1 conv=notrunc 2> /dev/null'
# First iteration works with no prompting, since there is no preexisting label.
test_expect_success \
--
1.6.5.2.372.gc0502
More information about the parted-devel
mailing list