Skip to content

Commit

Permalink
Add test for new env handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
ktlim committed Mar 11, 2022
1 parent 3f1ca7e commit 96b0544
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test-lsstinstall.bash
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,16 @@ CONDA_EXE="somewhere/bin/conda" ./scripts/lsstinstall -n -P -p "$testdir" | grep
rm -rf "$testdir"
)

# Check new environment handling
(
origdir=$(pwd)
mkdir -p "$testdir"
cd "$testdir"
touch ./loadLSST.sh
"${origdir}/scripts/lsstinstall" -n -v 3.0.0 | grepf "LSST_CONDA_ENV_NAME=lsst-scipipe-3.0.0 source "
rm -rf "$testdir"
)

# Test for argument parsing failures
xfail ./scripts/lsstinstall -n -v cb4e2dc -T w_2021_11
xfail ./scripts/lsstinstall -n -v cb4e2dc -X w_2021_11
Expand Down

0 comments on commit 96b0544

Please sign in to comment.