From 9d67f1cf396ad8de5f51f57e5140f4ed834e7d06 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 15 Dec 2023 21:12:20 +0000 Subject: [PATCH] Testing: Fix attempt 1 --- tests/bufr_set.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/bufr_set.sh b/tests/bufr_set.sh index cd48e3f6f..b0f901d95 100755 --- a/tests/bufr_set.sh +++ b/tests/bufr_set.sh @@ -189,10 +189,12 @@ result=`${tools_dir}/bufr_get -p messageLength $fBufrTmp` #----------------------------------------------------------- ${tools_dir}/bufr_set -s masterTablesVersionNumber=255 $ECCODES_SAMPLES_PATH/BUFR4.tmpl $fBufrTmp set +e -${tools_dir}/bufr_dump -p $fBufrTmp >& $fLog -status=$? +${tools_dir}/bufr_dump -p $fBufrTmp 2>>$fLog 1>>$fLog +if [ $? -eq 0 ]; then + echo "bufr_dump should have failed" >&2 + exit 1 +fi set -e -[ $status -ne 0 ] grep -q "unable to find definition file sequence.def.*bufr/tables/0/local/0/98/0/sequence.def" $fLog grep -q "ECCODES ERROR.*unable to get hash value for sequences" $fLog