]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: make minix tests more robust
authorKarel Zak <kzak@redhat.com>
Tue, 21 Feb 2012 15:14:08 +0000 (16:14 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 21 Feb 2012 15:14:08 +0000 (16:14 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/minix/fsck
tests/ts/minix/mkfs

index f9680386bd309c8f9130b1f5dab189912056b1a0..f635fc1b47894d740f90b723b36468f85608026b 100755 (executable)
@@ -23,6 +23,8 @@ ts_skip_nonroot
 
 set -o pipefail
 
+[ -x $TS_CMD_FSCKMINIX ] || ts_skip "fsck.minix not compiled"
+
 IMAGE="$TS_OUTDIR/${TS_TESTNAME}-loop.img"
 DEVICE=$(ts_device_init)
 
index 21c3ffedd325634b5a339ddbd5172048b072ee40..93de4e6ea87716738e1d1c7bdd7df4b079fffe50 100755 (executable)
@@ -23,6 +23,8 @@ ts_skip_nonroot
 
 set -o pipefail
 
+[ -x $TS_CMD_MKMINIX ] || ts_skip "mkfs.minix not compiled"
+
 IMAGE="$TS_OUTDIR/${TS_TESTNAME}-loop.img"
 DEVICE=$(ts_device_init)