summaryrefslogtreecommitdiffstats
path: root/tests/functions.sh
diff options
context:
space:
mode:
authorKarel Zak2015-04-14 11:26:54 +0200
committerKarel Zak2015-04-14 11:26:54 +0200
commit866372c699ab1bdc692ddbb6c27c91dd1e20b4b9 (patch)
treeb09f3379f7b710cad210f5d51b96f9b18503cfb3 /tests/functions.sh
parentfdisk: fix typo (diff)
downloadkernel-qcow2-util-linux-866372c699ab1bdc692ddbb6c27c91dd1e20b4b9.tar.gz
kernel-qcow2-util-linux-866372c699ab1bdc692ddbb6c27c91dd1e20b4b9.tar.xz
kernel-qcow2-util-linux-866372c699ab1bdc692ddbb6c27c91dd1e20b4b9.zip
tests: make libmount context tests sensitive to USE_LIBMOUNT_FORCE_MOUNTINFO
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/functions.sh')
-rw-r--r--tests/functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/functions.sh b/tests/functions.sh
index 55b92738c..e74a11cb5 100644
--- a/tests/functions.sh
+++ b/tests/functions.sh
@@ -545,7 +545,7 @@ function ts_is_mounted {
grep -q $DEV /proc/mounts && return 0
if [ "${DEV#/dev/loop/}" != "$DEV" ]; then
- return grep -q "/dev/loop${DEV#/dev/loop/}" /proc/mounts
+ grep -q "/dev/loop${DEV#/dev/loop/}" /proc/mounts && return 0
fi
return 1
}