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:
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
You can’t perform that action at this time.
0 commit comments