summaryrefslogtreecommitdiffstats
path: root/tests/functions.sh
diff options
context:
space:
mode:
authorKarel Zak2015-03-17 11:25:57 +0100
committerKarel Zak2015-03-17 11:25:57 +0100
commitf586080352cc77ae8632068021c2ad53d60c3abd (patch)
treecfa36c8f68457eb8a3f5b6f131ab4428533232b5 /tests/functions.sh
parenttests: use ts_skip for logger/journald (diff)
parenttests: optionally skip tests where loop support is needed (diff)
downloadkernel-qcow2-util-linux-f586080352cc77ae8632068021c2ad53d60c3abd.tar.gz
kernel-qcow2-util-linux-f586080352cc77ae8632068021c2ad53d60c3abd.tar.xz
kernel-qcow2-util-linux-f586080352cc77ae8632068021c2ad53d60c3abd.zip
Merge branch 'drone-ci' of https://github.com/rudimeier/util-linux
Diffstat (limited to 'tests/functions.sh')
-rw-r--r--tests/functions.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/functions.sh b/tests/functions.sh
index 02f81dd5e..bfc3fa28d 100644
--- a/tests/functions.sh
+++ b/tests/functions.sh
@@ -68,6 +68,10 @@ function ts_check_losetup {
local tmp
ts_check_test_command "$TS_CMD_LOSETUP"
+ if [ "$TS_OPT_FEAT_SKIP_LOOP" = "yes" ]; then
+ ts_skip "loop-device tests disabled"
+ fi
+
# assuming that losetup -f works ... to be checked somewhere else
tmp=$($TS_CMD_LOSETUP -f 2>/dev/null)
if test -b "$tmp"; then