tests: add function ts_check_losetup
Unfortunately losetup -f does not return an error nowadays. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
This commit is contained in:
parent
b5eb509709
commit
5ec15aefbb
1 changed files with 12 additions and 0 deletions
|
@ -45,6 +45,18 @@ function ts_check_test_command {
|
|||
fi
|
||||
}
|
||||
|
||||
function ts_check_losetup {
|
||||
local tmp
|
||||
ts_check_test_command "$TS_CMD_LOSETUP"
|
||||
|
||||
# assuming that losetup -f works ... to be checked somewhere else
|
||||
tmp=$($TS_CMD_LOSETUP -f 2>/dev/null)
|
||||
if test -b "$tmp"; then
|
||||
return 0
|
||||
fi
|
||||
ts_skip "no loop device support"
|
||||
}
|
||||
|
||||
function ts_skip_subtest {
|
||||
ts_report " IGNORE ($1)"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue