]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: (lsfd) refine the pattern for comparing the output of the commands
authorMasatake YAMATO <yamato@redhat.com>
Fri, 4 Feb 2022 17:18:14 +0000 (02:18 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Fri, 4 Feb 2022 17:20:46 +0000 (02:20 +0900)
commitabd93fcecfbb1a1fac7032fac9d2903c5d2d3a38
tree5a41ab3af47425411e3c4ca71171c5829ff03534
parente39e16c3e81b58b9c6715ee39f8fbe67ecf555dc
tests: (lsfd) refine the pattern for comparing the output of the commands

When comparing the output of lsfd and findmnt commands, I passed just
"$MNTID" to grep for filtering the output of findmnt. It was too relaxed.

It should be "$MNTID\b"; a space after $MNTID was needed.

https://github.com/util-linux/util-linux/issues/1511#issuecomment-1029968595
shows the output triggering the bug of the test case.

Reported-by: Chris Hofstaedtler <zeha@debian.org>
Reported-by: Anatoly Pugachev <matorola@gmail.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
tests/ts/lsfd/lsfd-functions.bash