diff options
author | Ruediger Meier | 2018-03-09 18:27:44 +0100 |
---|---|---|
committer | Karel Zak | 2018-03-19 11:46:11 +0100 |
commit | ec182d8b9da7596809aab9aab4fc931e9ccb7494 (patch) | |
tree | 5b5127ff66d0d027da6238e105eb3dfa5bbfc3b3 /tests/ts/libmount/context | |
parent | tests: handle xargs errors and invalid args (diff) | |
download | kernel-qcow2-util-linux-ec182d8b9da7596809aab9aab4fc931e9ccb7494.tar.gz kernel-qcow2-util-linux-ec182d8b9da7596809aab9aab4fc931e9ccb7494.tar.xz kernel-qcow2-util-linux-ec182d8b9da7596809aab9aab4fc931e9ccb7494.zip |
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-x | tests/ts/libmount/context | 2 |
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 |