xfs/{263,106}: erase max warnings printout

Both of these tests encode the xfs_quota output in the golden output.
Now that we've changed xfs_quota to emit max warnings, we have to fix
the test to avoid regressions.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Bill O'Donnell <billodo@redhat.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Darrick J. Wong
2020-07-30 11:35:33 -07:00
committed by Eryu Guan
parent 7cee3f1728
commit 9515832478
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -96,7 +96,8 @@ filter_state()
{
_filter_quota | sed -e "s/Inode: #[0-9]* (0 blocks, 0 extents)/Inode: #[INO] (0 blocks, 0 extents)/g" \
-e "s/Inode: #[0-9]* ([0-9]* blocks, [0-9]* extents)/Inode: #[INO] (X blocks, Y extents)/g" \
-e "/[0-9][0-9]:[0-9][0-9]:[0-9][0-9]/s/ [0-9][0-9]:[0-9][0-9]:[0-9][0-9]//g"
-e "/[0-9][0-9]:[0-9][0-9]:[0-9][0-9]/s/ [0-9][0-9]:[0-9][0-9]:[0-9][0-9]//g" \
-e '/max warnings:/d'
}
test_quot()
+3 -1
View File
@@ -57,7 +57,9 @@ function option_string()
}
filter_quota_state() {
sed -e 's/Inode: #[0-9]\+/Inode #XXX/g' | _filter_scratch
sed -e 's/Inode: #[0-9]\+/Inode #XXX/g' \
-e '/max warnings:/d' \
| _filter_scratch
}
function test_all_state()