]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: fix grep expressions for devices
authorRuediger Meier <ruediger.meier@ga-group.nl>
Fri, 9 Mar 2018 17:27:44 +0000 (18:27 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 19 Mar 2018 10:46:11 +0000 (11:46 +0100)
commitec182d8b9da7596809aab9aab4fc931e9ccb7494
tree5b5127ff66d0d027da6238e105eb3dfa5bbfc3b3
parent07b1ea7c44a38d5df504524a5279de06220903b5
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>
12 files changed:
tests/functions.sh
tests/ts/libmount/context
tests/ts/libmount/context-py
tests/ts/libmount/context-utab
tests/ts/libmount/context-utab-py
tests/ts/losetup/losetup-loop
tests/ts/mount/devname
tests/ts/swapon/devname
tests/ts/swapon/fixpgsz
tests/ts/swapon/fixsig
tests/ts/swapon/label
tests/ts/swapon/uuid