mirror of https://github.com/ecmwf/eccodes.git
Suppress error output from tests
This commit is contained in:
parent
ce2d1ed49f
commit
96c7846fc3
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue