Skip to content

Commit

Permalink
Per #1546, echo value of MET_PYTHON_EXE in tests that use the env var…
Browse files Browse the repository at this point in the history
… so that an error will occur if MET_TEST_MET_PYTHON_EXE is set when running a test that needs it to be set
  • Loading branch information
georgemccabe committed Jan 27, 2022
1 parent 5af8ded commit 38e7bdd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/xml/unit_python.xml
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,8 @@

<!-- Invokes user-python logic to read a grid string -->
<test name="python_numpy_grid_name_user_python">
<exec>&MET_BIN;/plot_data_plane</exec>
<exec>echo "MET_PYTHON_EXE=&MET_PYTHON_EXE; \
&MET_BIN;/plot_data_plane</exec>
<env>
<pair><name>MET_PYTHON_EXE</name> <value>&MET_PYTHON_EXE;</value></pair>
<pair><name>PYTHON_GRID</name> <value>G212</value></pair>
Expand All @@ -398,7 +399,8 @@

<!-- Invokes user-python logic to read point data -->
<test name="python_ascii2nc_user_python">
<exec>&MET_BIN;/ascii2nc</exec>
<exec>echo "MET_PYTHON_EXE=&MET_PYTHON_EXE; \
&MET_BIN;/ascii2nc</exec>
<env>
<pair><name>MET_PYTHON_EXE</name> <value>&MET_PYTHON_EXE;</value></pair>
</env>
Expand All @@ -415,6 +417,7 @@
<!-- Invokes user-python logic to read NUMPY text data -->
<test name="python_numpy_plot_data_plane_user_python">
<exec>export PATH='&ANACONDA_BIN;:${PATH}'; \
echo "MET_PYTHON_EXE=&MET_PYTHON_EXE; \
&MET_BIN;/plot_data_plane</exec>
<env>
<pair><name>MET_PYTHON_EXE</name> <value>&MET_PYTHON_EXE;</value></pair>
Expand All @@ -434,7 +437,8 @@

<!-- Invokes user-python logic to pass MPR data to Stat-Analysis -->
<test name="python_stat_analysis_user_python">
<exec>&MET_BIN;/stat_analysis</exec>
<exec>echo "MET_PYTHON_EXE=&MET_PYTHON_EXE; \
&MET_BIN;/stat_analysis</exec>
<env>
<pair><name>MET_PYTHON_EXE</name> <value>&MET_PYTHON_EXE;</value></pair>
</env>
Expand Down

0 comments on commit 38e7bdd

Please sign in to comment.