diff options
author | Petr Uzel <petr.uzel@suse.cz> | 2011-03-11 13:26:43 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-03-16 18:45:55 +0100 |
commit | 67dbdedc1f27d119d490ceb5ce56bf9f4fdeefdd (patch) | |
tree | 1daf16dcd556872d5dfd3ea2fb4727946e6d8f65 /tests/t1700-probe-fs.sh | |
parent | c773932e690b09b965bdacc0b51cabcef3746ad2 (diff) | |
download | parted-67dbdedc1f27d119d490ceb5ce56bf9f4fdeefdd.tar.gz |
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@suse.cz>
Diffstat (limited to 'tests/t1700-probe-fs.sh')
-rwxr-xr-x | tests/t1700-probe-fs.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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 |