Skip to content

Commit d0e0559

Browse files
committed
Something wrong with error checking, add logs to help debug
1 parent 6d6c142 commit d0e0559

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/trunk.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,17 @@ jobs:
120120
grep -qF "ERROR" sim.out
121121
exit_status=$? #store 0 if found (failure), 1 if not (success)
122122
if [[ "$exit_status" -eq "0" ]]; then
123+
cat sim.out
123124
exit 1
124125
fi
125126
126127
# Report fail if simulation does not complete successfully
127128
grep -qF "SUCCESS: Program complete, exiting." sim.out
128129
exit_status=$? #store 0 if found (success), 1 if not (failure)
129-
exit $exit_status
130+
if [[ "$exit_status" -eq "1" ]]; then
131+
cat sim.out
132+
exit 1
133+
fi
130134
131135
test-models-linux-aarch64:
132136
name: test-models-linux-aarch64

0 commit comments

Comments
 (0)