diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-06-21 08:54:53 -0700 |
---|---|---|
committer | Eryu Guan <guaneryu@gmail.com> | 2021-06-27 22:48:54 +0800 |
commit | e486a19d03b2510e653b41633b528c80d358c90e (patch) | |
tree | 9e5dce7df39e53574a2ae0cc716fec1ef29ae146 /new | |
parent | 1c8b154ab9661649ae5d7c2f357e9b04b3c63c35 (diff) |
fstests: fix group check in new script
In the tests/*/group files, group names are found in the Nth columns of
the file, where N > 1. The grep expression to warn about unknown groups
is not correct (since it currently checks column 1), so fix this.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
Diffstat (limited to 'new')
-rwxr-xr-x | new | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -243,10 +243,7 @@ else # for g in $* do - if grep "^$g[ ]" $tdir/group >/dev/null - then - : - else + if ! grep -q "[[:space:]]$g" "$tdir/group"; then echo "Warning: group \"$g\" not defined in $tdir/group" fi done |