Skip to content

Commit

Permalink
common: addjust tests to new logging system
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@intel.com>
  • Loading branch information
grom72 committed Jan 30, 2024
1 parent e45af55 commit 381c763
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 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 -E '\*WARN\*' $LOG_TEMP > $LOG
rm $LOG_TEMP

check

pass
2 changes: 1 addition & 1 deletion src/test/pmempool_transform/TEST5
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ 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
grep -v -E '\*ERROR\*|\*WARN\*' $LOG_TEMP > $LOG
rm $LOG_TEMP

check
Expand Down
2 changes: 1 addition & 1 deletion src/test/pmempool_transform/TEST6
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ expect_abnormal_exit $PMEMPOOL$EXESUFFIX transform \
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
grep -v -E '\*ERROR\*|\*WARN\*' $LOG_TEMP > $LOG
rm $LOG_TEMP

check
Expand Down

0 comments on commit 381c763

Please sign in to comment.