Skip to content

Commit

Permalink
Print failed tests log
Browse files Browse the repository at this point in the history
  • Loading branch information
simonlegrand authored and prj- committed Jan 30, 2025
1 parent 404fd05 commit f27fbdd
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/full-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
run: |
make check -i
echo "Tests failed: " $(grep :test-result examples/*/*.trs | grep FAIL | wc -l)
./etc/actions/failed_tests_logs.sh
- name: Install
run: make install
Expand Down Expand Up @@ -115,6 +116,7 @@ jobs:
run: |
make check -i
echo "Tests failed: " $(grep :test-result examples/*/*.trs | grep FAIL | wc -l)
./etc/actions/failed_tests_logs.sh
- name: Install
run: make install
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/full-msmpi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,4 @@ jobs:
run: |
make check -i
echo "Tests failed: " $(grep :test-result examples/*/*.trs | grep FAIL | wc -l)
./etc/actions/failed_tests_logs.sh
2 changes: 2 additions & 0 deletions .github/workflows/full-openmpi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
run: |
make check -i
echo "Tests failed: " $(grep :test-result examples/*/*.trs | grep FAIL | wc -l)
./etc/actions/failed_tests_logs.sh
- name: Install
run: make install
Expand Down Expand Up @@ -126,6 +127,7 @@ jobs:
run: |
make check -i
echo "Tests failed: " $(grep :test-result examples/*/*.trs | grep FAIL | wc -l)
./etc/actions/failed_tests_logs.sh
- name: Install
run: make install
3 changes: 3 additions & 0 deletions .github/workflows/minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
run: |
make check -i
echo "Tests failed: " $(grep :test-result examples/*/*.trs | grep FAIL | wc -l)
./etc/actions/failed_tests_logs.sh
- name: Install
run: make install
Expand Down Expand Up @@ -83,6 +84,7 @@ jobs:
run: |
make check -i
echo "Tests failed: " $(grep :test-result examples/*/*.trs | grep FAIL | wc -l)
./etc/actions/failed_tests_logs.sh
- name: Install
run: make install
Expand Down Expand Up @@ -133,3 +135,4 @@ jobs:
run: |
make check -i
echo "Tests failed: " $(grep :test-result examples/*/*.trs | grep FAIL | wc -l)
./etc/actions/failed_tests_logs.sh
3 changes: 3 additions & 0 deletions .github/workflows/sequential.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
run: |
make check -i
echo "Tests failed: " $(grep :test-result examples/*/*.trs | grep FAIL | wc -l)
./etc/actions/failed_tests_logs.sh
- name: Install
run: make install
Expand Down Expand Up @@ -87,6 +88,7 @@ jobs:
run: |
make check -i
echo "Tests failed: " $(grep :test-result examples/*/*.trs | grep FAIL | wc -l)
./etc/actions/failed_tests_logs.sh
- name: Install
run: make install
Expand Down Expand Up @@ -144,3 +146,4 @@ jobs:
run: |
make check -i
echo "Tests failed: " $(grep :test-result examples/*/*.trs | grep FAIL | wc -l)
./etc/actions/failed_tests_logs.sh
12 changes: 12 additions & 0 deletions etc/actions/failed_tests_logs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

FAILED_TESTS=( $(grep :test-result examples/*/*.trs | grep FAIL) )

for val in ${FAILED_TESTS[@]/#*FAIL/}
do
IFS="::"
read -ra path <<< $val
printf "\n******** ${path%.*}.log ********\n\n"
cat ${path%.*}.log
unset IFS
done;

0 comments on commit f27fbdd

Please sign in to comment.