Suppress error output from tests

This commit is contained in:
Shahram Najm 2015-12-17 14:01:19 +00:00
parent ce2d1ed49f
commit 96c7846fc3
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ rm $OUTPUT || true
# We are expecting the command to fail so must turn off "set -e"
INPUT=${data_dir}/bad.grib
set +e
$PYTHON $examples_src/binary_message.py $INPUT $OUTPUT
$PYTHON $examples_src/binary_message.py $INPUT $OUTPUT 2>/dev/null
status=$?
set -e
# Check command did indeed fail

View File

@ -28,7 +28,7 @@ $PYTHON $examples_src/bufr_set_keys.py 2> $REDIRECT > $REDIRECT
#Compare modified to the original
set +e
${tools_dir}/bufr_compare $f $fBufrTmp
${tools_dir}/bufr_compare $f $fBufrTmp 1>$REDIRECT 2> $REDIRECT
#Check if modified is different
if [ $? -eq 0 ]; then