Skip to content

Commit

Permalink
common: addjust tests match file for util_poolset tests
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Gromadzki <[email protected]>
  • Loading branch information
grom72 committed Jan 30, 2024
1 parent f756a50 commit 58dc06e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
5 changes: 4 additions & 1 deletion src/test/pmempool_transform/TEST10
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ expect_abnormal_exit $PMEMPOOL$EXESUFFIX transform \
# Check metadata by pmempool info
dump_pool_info $POOLSET_IN >> $LOG_TEMP

mv $LOG_TEMP $LOG
# Exclude warning messages printed out on the stderr by PMDK in debug
grep -v "*WARN*" $LOG_TEMP > $LOG
rm $LOG_TEMP

check

pass
4 changes: 2 additions & 2 deletions src/test/pmempool_transform/TEST5
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ dump_pool_info $DIR/testfile01 >> $LOG_TEMP
dump_pool_info $DIR/testfile02 >> $LOG_TEMP
dump_pool_info $DIR/testfile10 >> $LOG_TEMP

# Exclude error messages printed out on the stderr by PMDK in debug
fgrep -v "*ERROR*" $LOG_TEMP > $LOG
# Exclude error and warning messages printed out on the stderr by PMDK in debug
grep -v -E "\*ERROR\*|\*WARN\*" $LOG_TEMP > $LOG
rm $LOG_TEMP

check
Expand Down
4 changes: 2 additions & 2 deletions src/test/pmempool_transform/TEST6
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ expect_abnormal_exit $PMEMPOOL$EXESUFFIX transform \
# Check metadata by pmempool info
dump_pool_info $POOLSET_OUT1 >> $LOG_TEMP

# Exclude error messages printed out on the stderr by PMDK in debug
fgrep -v "*ERROR*" $LOG_TEMP > $LOG
# Exclude error and warning messages printed out on the stderr by PMDK in debug
grep -v -E "\*ERROR\*|\*WARN\*" $LOG_TEMP > $LOG
rm $LOG_TEMP

check
Expand Down
2 changes: 0 additions & 2 deletions src/test/util_poolset/grep1.log.match
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ open "$(nW)/testset0": No such file or directory
invalid major version (0)
open "$(nW)/testset2": Permission denied
open "$(nW)/testfile31": No such file or directory
cannot open the part -- "$(nW)/testfile31": No such file or directory
open "$(nW)/testfile32": No such file or directory
cannot open the part -- "$(nW)/testfile32": No such file or directory
open "$(nW)/testfile31": No such file or directory
open "$(nW)/testfile42": No such file or directory
size 1048576 smaller than 2097152
Expand Down

0 comments on commit 58dc06e

Please sign in to comment.