From 2dec32ab4ee754dea8c457636a5dd7ba63cae75b Mon Sep 17 00:00:00 2001 From: ptaylor Date: Wed, 7 Feb 2024 06:26:59 +0000 Subject: [PATCH] check if libkvikio gtests dir exists before cd'ing --- ci/run_ctests.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ci/run_ctests.sh b/ci/run_ctests.sh index 069490facf..5ec9d1d9a4 100755 --- a/ci/run_ctests.sh +++ b/ci/run_ctests.sh @@ -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