Skip to content

Commit

Permalink
check if libkvikio gtests dir exists before cd'ing
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Feb 7, 2024
1 parent 3912344 commit 2dec32a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ci/run_ctests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@

set -euo pipefail

# Support customizing the ctests' install location
cd "${INSTALL_PREFIX:-${CONDA_PREFIX:-/usr}}/bin/tests/libkvikio/"

# Run BASIC_IO_TEST
./BASIC_IO_TEST
if [ -d "${INSTALL_PREFIX:-${CONDA_PREFIX:-/usr}}/bin/tests/libkvikio/" ]; then
# Support customizing the ctests' install location
cd "${INSTALL_PREFIX:-${CONDA_PREFIX:-/usr}}/bin/tests/libkvikio/"
# Run BASIC_IO_TEST
./BASIC_IO_TEST
fi

0 comments on commit 2dec32a

Please sign in to comment.