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/losetup | |
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/losetup')
-rwxr-xr-x | tests/ts/losetup/losetup-loop | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ts/losetup/losetup-loop b/tests/ts/losetup/losetup-loop index 6d1ef21bc..037e5c7c6 100755 --- a/tests/ts/losetup/losetup-loop +++ b/tests/ts/losetup/losetup-loop @@ -47,7 +47,7 @@ $TS_CMD_LOSETUP -d "$LODEV" LODEV=$( $TS_CMD_LOSETUP --find --nooverlap --show $BACKFILE ) udevadm settle dd if=/dev/zero of="$LODEV" count=1 bs=1 >/dev/null 2>&1 -$TS_CMD_LOSETUP --list | grep -q "$LODEV" +$TS_CMD_LOSETUP --list | grep -q "$LODEV\b" ts_log $? udevadm settle $TS_CMD_LOSETUP -d "$LODEV" >/dev/null 2>&1 |