diff options
Diffstat (limited to 'tests/ts/libmount/context-py')
-rwxr-xr-x | tests/ts/libmount/context-py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ts/libmount/context-py b/tests/ts/libmount/context-py index b4e22b400..dfc8faaee 100755 --- a/tests/ts/libmount/context-py +++ b/tests/ts/libmount/context-py @@ -58,7 +58,7 @@ DEVICE="${TS_DEVICE}1" udevadm settle -grep -q $DEVNAME /proc/partitions +grep -q " $DEVNAME\$" /proc/partitions if [ $? -ne 0 ]; then ts_skip "no partition!" fi @@ -77,7 +77,7 @@ function is_mounted { ts_is_mounted "$1" return $? fi - grep -q "$1" $LIBMOUNT_MTAB && return 0 + grep -q "\(^\| \)$1 " $LIBMOUNT_MTAB && return 0 return 1 } |