Skip to content

Commit

Permalink
Per #1319, this is a hotfix to the develop branch. While running unit…
Browse files Browse the repository at this point in the history
…_python.xml works via the command line, it fails when run through cron. The problem is the PATH setting. Need to have the anaconda bin directory in the path for it to succeeed. Adding that for the single test.
  • Loading branch information
MET Tools Test Account committed Apr 4, 2021
1 parent d26e62d commit 338c6e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/xml/unit_python.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<!ENTITY INPUT_DIR "${MET_TEST_INPUT}">
<!ENTITY OUTPUT_DIR "${MET_TEST_OUTPUT}">
<!ENTITY MET_PYTHON_EXE "/usr/local/python3/bin/python3">
<!ENTITY ANACONDA_BIN "/usr/local/anaconda3-20190923/bin">

<!ENTITY CONFIG_DIR "&TEST_DIR;/config">
<!ENTITY DATA_DIR_PYTHON "&INPUT_DIR;/python">
Expand Down Expand Up @@ -394,6 +395,7 @@
<exec>&MET_BIN;/plot_data_plane</exec>
<env>
<pair><name>MET_PYTHON_EXE</name> <value>&MET_PYTHON_EXE;</value></pair>
<pair><name>PATH</name> <value>&ANACONDA_BIN;</value></pair>
</env>
<param> \
PYTHON_NUMPY \
Expand Down

0 comments on commit 338c6e2

Please sign in to comment.