]> git.ipfire.org Git - thirdparty/util-linux.git/commit - tests/functions.sh
tests, add function ts_mount
authorRuediger Meier <ruediger.meier@ga-group.nl>
Thu, 15 May 2014 11:20:31 +0000 (13:20 +0200)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Fri, 16 May 2014 10:06:00 +0000 (12:06 +0200)
commit2f9549470754a958a8151e000ee881f84015634c
tree7e74b46c0c687d0d519a327fe74fd1c90bc08794
parent37bc9a51c8aed637fb5243f6852da39d85cb98f9
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>
tests/functions.sh
tests/ts/minix/mkfs