Skip to content

Commit

Permalink
Handle test failure accurately
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipFackler committed Nov 19, 2024
1 parent 3e78465 commit 139bd58
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci-github-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: GitHub Actions CI
on:
push:
branches:
- stable
- develop
- feature-gh-actions
pull_request:
Expand Down
15 changes: 12 additions & 3 deletions CI/scripts/run_step.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
#!/bin/bash

set -e

echo -e "\nCheck gcc and clang compilers\n"
gcc --version
clang --version

function run_tests () {
cd ${GITHUB_WORKSPACE}/../build
ctest --output-on-failure --label-exclude xolotl.tests.system
local __xolotl_ret=$?
./test/system/SystemTester -- -t
local __xolotl_sys_ret=$?
return $((__xolotl_ret + __xolotl_sys_ret))
}

case "$1" in

configure)
Expand Down Expand Up @@ -46,9 +57,7 @@ case "$1" in
;;

test)
cd ${GITHUB_WORKSPACE}/../build
ctest -VV --label-exclude xolotl.tests.system
./test/system/SystemTester -- -t
run_tests
;;

*)
Expand Down

0 comments on commit 139bd58

Please sign in to comment.