[Parted-commits] GNU Parted Official Repository: Changes to 'master'
Jim Meyering
meyering at alioth.debian.org
Wed Mar 16 17:51:12 UTC 2011
tests/t1700-probe-fs.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 67dbdedc1f27d119d490ceb5ce56bf9f4fdeefdd
Author: Petr Uzel <petr.uzel at suse.cz>
Date: Fri Mar 11 13:26:43 2011 +0100
tests: do not fail if some utilities are missing
* tests/t1700-probe-fs.sh: Skip the test if mkfs.ext3 or tune2fs
is missing or is not in $PATH.
Signed-off-by: Petr Uzel <petr.uzel at suse.cz>
diff --git a/tests/t1700-probe-fs.sh b/tests/t1700-probe-fs.sh
index 749c9ea..21e72f9 100755
--- a/tests/t1700-probe-fs.sh
+++ b/tests/t1700-probe-fs.sh
@@ -44,10 +44,10 @@ done
for feature in uninit_bg flex_bg; do
# create an ext3 file system
dd if=/dev/zero of=$dev bs=1024 count=4096 >/dev/null || fail=1
- mkfs.ext3 -F $dev >/dev/null || fail=1
+ mkfs.ext3 -F $dev >/dev/null || skip_ "mkfs.ext3 failed"
# set the feature
- tune2fs -O $feature $dev || fail=1
+ tune2fs -O $feature $dev || skip_ "tune2fs failed"
# probe the file system, which should now be ext4
parted -m -s $dev u s print >out 2>&1 || fail=1
More information about the Parted-commits
mailing list