From 96c7846fc36a3d186890551147771801b606a110 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Thu, 17 Dec 2015 14:01:19 +0000 Subject: [PATCH] Suppress error output from tests --- examples/python/binary_message.sh | 2 +- examples/python/bufr_set_keys.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/python/binary_message.sh b/examples/python/binary_message.sh index 14971b53b..ba9c95616 100755 --- a/examples/python/binary_message.sh +++ b/examples/python/binary_message.sh @@ -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 diff --git a/examples/python/bufr_set_keys.sh b/examples/python/bufr_set_keys.sh index 294c0a4e8..bd0ce62e3 100755 --- a/examples/python/bufr_set_keys.sh +++ b/examples/python/bufr_set_keys.sh @@ -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