From 866372c699ab1bdc692ddbb6c27c91dd1e20b4b9 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 14 Apr 2015 11:26:54 +0200 Subject: tests: make libmount context tests sensitive to USE_LIBMOUNT_FORCE_MOUNTINFO Signed-off-by: Karel Zak --- tests/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/functions.sh') 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 } -- cgit v1.2.3-55-g7522