summaryrefslogtreecommitdiff
path: root/tests/ts/libmount/context
diff options
context:
space:
mode:
authorRuediger Meier <ruediger.meier@ga-group.nl>2018-03-09 18:27:44 +0100
committerKarel Zak <kzak@redhat.com>2018-03-19 11:46:11 +0100
commitec182d8b9da7596809aab9aab4fc931e9ccb7494 (patch)
tree5b5127ff66d0d027da6238e105eb3dfa5bbfc3b3 /tests/ts/libmount/context
parent07b1ea7c44a38d5df504524a5279de06220903b5 (diff)
downloadutil-linux-ec182d8b9da7596809aab9aab4fc931e9ccb7494.tar.gz
tests: fix grep expressions for devices
ts_is_mounted "/dev/loop1" returned true if /dev/loop17 was mounted. A very annoying source of sporadic failures since many years. This issue became more visible since running the checks in parallel, which increases the probability to get bigger loop device numbers. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'tests/ts/libmount/context')
-rwxr-xr-xtests/ts/libmount/context2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ts/libmount/context b/tests/ts/libmount/context
index 5a4f36afa..3750c701f 100755
--- a/tests/ts/libmount/context
+++ b/tests/ts/libmount/context
@@ -53,7 +53,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