Skip to content

Commit

Permalink
Export qsub for pbs tests in testkomodo
Browse files Browse the repository at this point in the history
  • Loading branch information
larsevj committed Mar 14, 2024
1 parent d72d2fd commit a08153e
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions ci/testkomodo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,18 @@ start_tests () {

# Using presence of "bsub" in PATH to detect onprem vs azure
if which bsub >/dev/null && basetemp=$(mktemp -d -p ~/pytest-tmp); then
pytest -v --lsf --basetemp="$basetemp" integration_tests/scheduler && \
rm -rf "$basetemp"
pytest -v --lsf --basetemp="$basetemp" integration_tests/scheduler
rm -rf "$basetemp"
fi
if ! which bsub 2>/dev/null && basetemp=$(mktemp -d -p ~/pytest-tmp); then
export _ERT_TESTS_DEFAULT_QUEUE_NAME=permanent
pytest -v --openpbs --basetemp="$basetemp" integration_tests/scheduler && \
rm -rf "$basetemp"
export PATH=$PATH:/opt/pbs/bin
if [[ $(uname -r) == *el7* ]] ; then
export _ERT_TESTS_DEFAULT_QUEUE_NAME=permanent
else
export _ERT_TESTS_DEFAULT_QUEUE_NAME=permanent_8
fi
pytest -v --openpbs --basetemp="$basetemp" integration_tests/scheduler
rm -rf "$basetemp"
fi
popd

Expand Down

0 comments on commit a08153e

Please sign in to comment.