Skip to content

Commit 2d16f92

Browse files
committed
Testing fix not that exit on error is disabled
1 parent bc6da40 commit 2d16f92

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/trunk.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,19 +125,21 @@ jobs:
125125
set +e
126126
# Report failure if any of the ouptut verification checks fail
127127
# store 0 if found (failure), 1 if not (success)
128-
exit_status=$(grep -F "ERROR" sim.out)
128+
grep -F "ERROR" sim.out
129+
exit_status=$?
129130
if [[ "$exit_status" -eq "0" ]]; then
130-
set -e
131131
cat sim.out
132+
set -e
132133
exit 1
133134
fi
134135
135136
# Report fail if simulation does not complete successfully
136137
# store 0 if found (success), 1 if not (failure)
137-
exit_status= $(grep -F "SUCCESS: Program complete, exiting." sim.out)
138+
grep -F "SUCCESS: Program complete, exiting." sim.out
139+
exit_status=$?
138140
if [[ "$exit_status" -eq "1" ]]; then
139-
set -e
140141
cat sim.out
142+
set -e
141143
exit 1
142144
fi
143145
# Re-enable exit on error

0 commit comments

Comments
 (0)