diff options
author | Ruediger Meier | 2014-05-15 13:20:31 +0200 |
---|---|---|
committer | Ruediger Meier | 2014-05-16 12:06:00 +0200 |
commit | 2f9549470754a958a8151e000ee881f84015634c (patch) | |
tree | 7e74b46c0c687d0d519a327fe74fd1c90bc08794 /tests/ts/minix | |
parent | Merge branch 'travis-root-checks-v2' of https://github.com/rudimeier/util-linux (diff) | |
download | kernel-qcow2-util-linux-2f9549470754a958a8151e000ee881f84015634c.tar.gz kernel-qcow2-util-linux-2f9549470754a958a8151e000ee881f84015634c.tar.xz kernel-qcow2-util-linux-2f9549470754a958a8151e000ee881f84015634c.zip |
tests, add function ts_mount
We want to generalize mounts similar to how we do it already in
minix/mkfs. Currently most of our other checks just fail if
"fs not supported".
Note that the new function checks a bit stronger than before in
minix/mkfs. It respects mount's return value and stderr goes
to $TS_OUTPUT too.
It's a bit ugly that we write to $TS_OUTPUT from inside of the
function. But if the caller would do it then we couldn't
ts_skip and the whole function would be pointless.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'tests/ts/minix')
-rwxr-xr-x | tests/ts/minix/mkfs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/ts/minix/mkfs b/tests/ts/minix/mkfs index f94cb0a4d..f664e3525 100755 --- a/tests/ts/minix/mkfs +++ b/tests/ts/minix/mkfs @@ -37,8 +37,7 @@ ts_log "create mountpoint dir" [ -d "$TS_MOUNTPOINT" ] || mkdir -p $TS_MOUNTPOINT ts_log "mount the filesystem" -($TS_CMD_MOUNT $DEVICE $TS_MOUNTPOINT 2>&1 >> $TS_OUTPUT || true) \ - | grep -q "unknown filesystem type" && ts_skip "mkfs: minix fs not supported by kernel" +ts_mount $DEVICE $TS_MOUNTPOINT # check it ts_is_mounted $DEVICE || ts_die "Cannot find $DEVICE in /proc/mounts" $DEVICE |