Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
yaswant committed Aug 5, 2024
1 parent e51da0e commit 99edb68
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ci/build-and-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# shellcheck disable=SC2317
# shellcheck source=/dev/null
set -euxo pipefail
set -euo pipefail

finally() {
trap '' ERR
Expand Down Expand Up @@ -63,8 +63,8 @@ cmake --build . -j "${NPROC}"

# -- Test
case "$CI_TESTS" in
0) ctest -j"${NPROC}" --test-dir "${TESTDIR}" --output-on-failure -R 'coding_norms' ;;
1) ctest -j"${NPROC}" --test-dir "${TESTDIR}" --output-on-failure ;;
0) ctest --test-dir "${TESTDIR}" --output-on-failure -R 'coding_norms' ;;
1) ctest --test-dir "${TESTDIR}" --output-on-failure ;;
*) echo "** Error: CI_TESTS=$CI_TESTS is not a valid option **";
exit 1 ;;
esac
Expand Down
4 changes: 3 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ ecbuild_add_test(TARGET monio_coding_norms
${PROJECT_SOURCE_DIR}/test)

if(NOT IS_DIRECTORY "${MONIO_TESTFILES_DIR}")
message(WARNING "MONIO_TESTFILES_DIR=${MONIO_TESTFILES_DIR}: no such directory")
message(WARNING
"MONIO_TESTFILES_DIR=${MONIO_TESTFILES_DIR}: no such directory.\
Skipping tests that require test files.")
return()
endif()

Expand Down

0 comments on commit 99edb68

Please sign in to comment.