mirror of https://github.com/ecmwf/eccodes.git
Fix broken tests due to ECCODES_DEFINITION_PATH
This commit is contained in:
parent
8df839fee1
commit
9c656f5819
|
@ -23,7 +23,7 @@ cat $def_dir/grib2/boot.def > $bootfile
|
||||||
echo 'assert( year == 1990 );' >> $bootfile
|
echo 'assert( year == 1990 );' >> $bootfile
|
||||||
echo >> $bootfile
|
echo >> $bootfile
|
||||||
|
|
||||||
export ECCODES_DEFINITION_PATH=$PWD/$tempDir/definitions
|
export ECCODES_DEFINITION_PATH=$PWD/$tempDir/definitions:$ECCODES_DEFINITION_PATH
|
||||||
# This will activate the print statement above
|
# This will activate the print statement above
|
||||||
${tools_dir}/grib_set -s year=1990 $sample_grib2 /dev/null
|
${tools_dir}/grib_set -s year=1990 $sample_grib2 /dev/null
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ cat $def_dir/grib2/boot.def > $bootfile
|
||||||
echo 'print "DEBUG: [gridType=] [typeOfLevel=]";' >> $bootfile
|
echo 'print "DEBUG: [gridType=] [typeOfLevel=]";' >> $bootfile
|
||||||
echo >> $bootfile
|
echo >> $bootfile
|
||||||
|
|
||||||
export ECCODES_DEFINITION_PATH=$PWD/$tempDir/definitions
|
export ECCODES_DEFINITION_PATH=$PWD/$tempDir/definitions:$ECCODES_DEFINITION_PATH
|
||||||
# This will activate the print statement above
|
# This will activate the print statement above
|
||||||
${tools_dir}/grib_get -p edition $sample_grib2 > $tempOut
|
${tools_dir}/grib_get -p edition $sample_grib2 > $tempOut
|
||||||
grep -q "DEBUG: gridType=regular_ll typeOfLevel=surface" $tempOut
|
grep -q "DEBUG: gridType=regular_ll typeOfLevel=surface" $tempOut
|
||||||
|
|
Loading…
Reference in New Issue