xfs/{263,106} erase max warnings printout
PATCH 1/1 xfs/{263,106} erase max warnings printout
From: Darrick J. Wong <[email protected]>
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 <[email protected]>
--- tests/xfs/106 | 3 ++- tests/xfs/263 | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-)
tests/xfs/106 +2 -1
@@ -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()
tests/xfs/263 +3 -1
@@ -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()
Quoted 7 lines · Darrick J. Wong
From: Darrick J. Wong <[email protected]>
Both of these tests encode the
xfs_quotaoutput in the golden output. Now that we've changedxfs_quotato emit max warnings, we have to fix the test to avoid regressions.Signed-off-by Darrick J. Wong <[email protected]>
Looks good.
Reviewed-by Bill O'Donnell <[email protected]>
Quoted 35 lines
--- tests/xfs/106 | 3 ++- tests/xfs/263 | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-)tests/xfs/106 +2
-1@@ -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()tests/xfs/263 +3
-1@@ -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()