Skip to content

Commit

Permalink
Merge branch 'cesm3_0_beta04_changes' of github.com:ESCOMP/CTSM into …
Browse files Browse the repository at this point in the history
…cesm3_0_beta04_changes
  • Loading branch information
ekluzek committed Dec 3, 2024
2 parents b559010 + 614dd18 commit 4ac6ae9
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ conda_for_host() {
module unload conda
fi
elif [[ "$host" =~ izumi.cgd.ucar.edu || "$host" =~ i*.cgd.ucar.edu ]] ; then
echo "Running on Izumi..." >&1
. /usr/share/Modules/init/sh
if [ "$verbose" -eq "1" ]; then
echo "Running on Izumi..." >&1
fi
if [[ "$type" == "load" ]]; then
. /usr/share/Modules/init/sh
module load lang/anaconda
else
module unload lang/anaconda
Expand All @@ -35,7 +37,7 @@ handle_error() {
return 1
}

# Expect that should should have run WITJ an error
# Expect that should should have run WITH an error
expect_fail() {
error=$1
msg=$2
Expand Down Expand Up @@ -145,7 +147,7 @@ test_main_without_conda() {
# I think this is because there's a lot of output in main
output=$(main >& /dev/null)
error=$?
expect_fail "$error" "main should fail without conda"
expect_fail "$error" "main should fail without conda (this can work on machines that include enough python packages outside of conda ctsm_pylib)"
conda_for_host "$host" "load"
}

Expand Down Expand Up @@ -185,4 +187,4 @@ test_log_msg_not_logged_if_debug_zero
test_main_without_conda
test_main_without_ctsm_pylib

echo -e "\n\nSuccessfully ran all the tests\n (Look for FAIL above for problems)"
echo -e "\n\nSuccessfully ran all the tests (Look for FAIL above for problems)"

0 comments on commit 4ac6ae9

Please sign in to comment.