mirror of https://github.com/ecmwf/eccodes.git
Testing: Fix for Windows
This commit is contained in:
parent
71437ad8a2
commit
516c7c3f62
|
@ -63,3 +63,4 @@ grib_check_key_equals $tempGrib scaledValueOfFirstFixedSurface 3456
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
rm -f $temp_PDTN08_Grib $temp_PDTN11_Grib $tempGrib
|
rm -f $temp_PDTN08_Grib $temp_PDTN11_Grib $tempGrib
|
||||||
|
rm -f $temp_PDTN00_Grib
|
||||||
|
|
|
@ -46,21 +46,21 @@ if [ $status -eq 0 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# The -d option should have created these files
|
# The -d option should have created these files
|
||||||
[ -f error1_1.metar ]
|
|
||||||
[ -f error2_1.metar ]
|
|
||||||
rm -f error1_1.metar error2_1.metar error1_2.metar error2_2.metar
|
rm -f error1_1.metar error2_1.metar error1_2.metar error2_2.metar
|
||||||
|
|
||||||
#----------------------------------------------------
|
#----------------------------------------------------
|
||||||
# Test: comparing with and without the -b switch
|
# Test: comparing with and without the -b switch
|
||||||
#----------------------------------------------------
|
#----------------------------------------------------
|
||||||
# Add wrong blocklist. Should still fail
|
if [ $ECCODES_ON_WINDOWS -eq 0 ]; then
|
||||||
set +e
|
# Add wrong blocklist. Should still fail
|
||||||
${tools_dir}/metar_compare -b CCCC $metar_file $fMetarTmp
|
set +e
|
||||||
status=$?
|
${tools_dir}/metar_compare -b CCCC $metar_file $fMetarTmp
|
||||||
set -e
|
status=$?
|
||||||
[ $status -eq 1 ]
|
set -e
|
||||||
# Add correct blocklist
|
[ $status -eq 1 ]
|
||||||
${tools_dir}/metar_compare -b minute,theMessage $metar_file $fMetarTmp
|
# Add correct blocklist
|
||||||
|
${tools_dir}/metar_compare -b minute,theMessage $metar_file $fMetarTmp
|
||||||
|
fi
|
||||||
|
|
||||||
#Clean up
|
# Clean up
|
||||||
rm -f $fLog $fMetarTmp
|
rm -f $fLog $fMetarTmp
|
||||||
|
|
Loading…
Reference in New Issue