Skip to content

Commit bc6da40

Browse files
committed
Trying to prevent exit on error from grep, testing fix
1 parent 16a4812 commit bc6da40

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/trunk.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,22 +119,29 @@ jobs:
119119
-C cpu0.CFGITCMSZ=15 \
120120
-C cpu0.CFGDTCMSZ=15 \
121121
--simlimit 120
122+
cat sim.out
122123
124+
# Disable exit on error
125+
set +e
123126
# Report failure if any of the ouptut verification checks fail
124127
# store 0 if found (failure), 1 if not (success)
125128
exit_status=$(grep -F "ERROR" sim.out)
126129
if [[ "$exit_status" -eq "0" ]]; then
127-
cat sim.out
128-
exit 1
130+
set -e
131+
cat sim.out
132+
exit 1
129133
fi
130134
131135
# Report fail if simulation does not complete successfully
132136
# store 0 if found (success), 1 if not (failure)
133137
exit_status= $(grep -F "SUCCESS: Program complete, exiting." sim.out)
134138
if [[ "$exit_status" -eq "1" ]]; then
135-
cat sim.out
136-
exit 1
139+
set -e
140+
cat sim.out
141+
exit 1
137142
fi
143+
# Re-enable exit on error
144+
set -e
138145
139146
test-models-linux-aarch64:
140147
name: test-models-linux-aarch64

0 commit comments

Comments
 (0)