File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -125,19 +125,21 @@ jobs:
125
125
set +e
126
126
# Report failure if any of the ouptut verification checks fail
127
127
# 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=$?
129
130
if [[ "$exit_status" -eq "0" ]]; then
130
- set -e
131
131
cat sim.out
132
+ set -e
132
133
exit 1
133
134
fi
134
135
135
136
# Report fail if simulation does not complete successfully
136
137
# 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=$?
138
140
if [[ "$exit_status" -eq "1" ]]; then
139
- set -e
140
141
cat sim.out
142
+ set -e
141
143
exit 1
142
144
fi
143
145
# Re-enable exit on error
You can’t perform that action at this time.
0 commit comments