From dd7819025998311ced75804cd27e204b26bc65d8 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Thu, 1 Feb 2024 23:13:53 +0000 Subject: [PATCH] Testing: write action --- tests/grib_filter.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/grib_filter.sh b/tests/grib_filter.sh index 57bc4cb8f..9a836a898 100755 --- a/tests/grib_filter.sh +++ b/tests/grib_filter.sh @@ -445,6 +445,16 @@ status=$? set -e [ $status -ne 0 ] + +# Bad write +set +e +echo 'write "/";' | ${tools_dir}/grib_filter - $input > $tempOut 2>&1 +status=$? +set -e +[ $status -ne 0 ] +grep -q "Unable to open file" $tempOut + + # Setting step # ------------- input=$ECCODES_SAMPLES_PATH/GRIB2.tmpl