Skip to content

Commit 8778ca9

Browse files
committed
Print failed tests log
1 parent fb137c1 commit 8778ca9

File tree

6 files changed

+23
-0
lines changed

6 files changed

+23
-0
lines changed

Diff for: .github/workflows/full-mpich.yml

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
run: |
6161
make check -i
6262
echo "Tests failed: " $(grep :test-result examples/*/*.trs | grep FAIL | wc -l)
63+
./etc/actions/failed_tests_logs.sh
6364
6465
- name: Install
6566
run: make install
@@ -115,6 +116,7 @@ jobs:
115116
run: |
116117
make check -i
117118
echo "Tests failed: " $(grep :test-result examples/*/*.trs | grep FAIL | wc -l)
119+
./etc/actions/failed_tests_logs.sh
118120
119121
- name: Install
120122
run: make install

Diff for: .github/workflows/full-msmpi.yml

+1
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,4 @@ jobs:
9494
run: |
9595
make check -i
9696
echo "Tests failed: " $(grep :test-result examples/*/*.trs | grep FAIL | wc -l)
97+
./etc/actions/failed_tests_logs.sh

Diff for: .github/workflows/full-openmpi.yml

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
run: |
6161
make check -i
6262
echo "Tests failed: " $(grep :test-result examples/*/*.trs | grep FAIL | wc -l)
63+
./etc/actions/failed_tests_logs.sh
6364
6465
- name: Install
6566
run: make install
@@ -126,6 +127,7 @@ jobs:
126127
run: |
127128
make check -i
128129
echo "Tests failed: " $(grep :test-result examples/*/*.trs | grep FAIL | wc -l)
130+
./etc/actions/failed_tests_logs.sh
129131
130132
- name: Install
131133
run: make install

Diff for: .github/workflows/minimal.yml

+3
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
run: |
4646
make check -i
4747
echo "Tests failed: " $(grep :test-result examples/*/*.trs | grep FAIL | wc -l)
48+
./etc/actions/failed_tests_logs.sh
4849
4950
- name: Install
5051
run: make install
@@ -83,6 +84,7 @@ jobs:
8384
run: |
8485
make check -i
8586
echo "Tests failed: " $(grep :test-result examples/*/*.trs | grep FAIL | wc -l)
87+
./etc/actions/failed_tests_logs.sh
8688
8789
- name: Install
8890
run: make install
@@ -133,3 +135,4 @@ jobs:
133135
run: |
134136
make check -i
135137
echo "Tests failed: " $(grep :test-result examples/*/*.trs | grep FAIL | wc -l)
138+
./etc/actions/failed_tests_logs.sh

Diff for: .github/workflows/sequential.yml

+3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
run: |
5050
make check -i
5151
echo "Tests failed: " $(grep :test-result examples/*/*.trs | grep FAIL | wc -l)
52+
./etc/actions/failed_tests_logs.sh
5253
5354
- name: Install
5455
run: make install
@@ -87,6 +88,7 @@ jobs:
8788
run: |
8889
make check -i
8990
echo "Tests failed: " $(grep :test-result examples/*/*.trs | grep FAIL | wc -l)
91+
./etc/actions/failed_tests_logs.sh
9092
9193
- name: Install
9294
run: make install
@@ -144,3 +146,4 @@ jobs:
144146
run: |
145147
make check -i
146148
echo "Tests failed: " $(grep :test-result examples/*/*.trs | grep FAIL | wc -l)
149+
./etc/actions/failed_tests_logs.sh

Diff for: etc/actions/failed_tests_logs.sh

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
3+
FAILED_TESTS=( $(grep :test-result examples/*/*.trs | grep FAIL) )
4+
5+
for val in ${FAILED_TESTS[@]/#*FAIL/}
6+
do
7+
IFS="::"
8+
read -ra path <<< $val
9+
printf "\n******** ${path%.*}.log ********\n\n"
10+
cat ${path%.*}.log
11+
unset IFS
12+
done;

0 commit comments

Comments
 (0)