From 3759b41c96b33f1c1f08078669bb5c5b5e14ca30 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Sat, 20 Jan 2024 13:57:58 +0000 Subject: [PATCH] Tools: Increase coverage --- tests/metar_compare.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/metar_compare.sh b/tests/metar_compare.sh index 3c91703c5..758509ac4 100755 --- a/tests/metar_compare.sh +++ b/tests/metar_compare.sh @@ -136,5 +136,14 @@ set -e [ $status -ne 0 ] grep -q "No such file or directory" $fLog +# Options +set +e +${tools_dir}/metar_compare -a $metar_file $metar_file > $fLog 2>&1 +status=$? +set -e +[ $status -ne 0 ] +grep -q "option requires" $fLog + + # Clean up rm -f $fLog $fMetarTmp