File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -121,16 +121,16 @@ jobs:
121121 cat sim.out
122122
123123 # Report failure if any of the ouptut verification checks fail
124- grep -F "ERROR" sim.out
125- exit_status=$? #store 0 if found (failure), 1 if not (success )
124+ # store 0 if found (failure), 1 if not (success)
125+ exit_status=$(grep -F "ERROR" sim.out )
126126 if [[ "$exit_status" -eq "0" ]]; then
127127 cat sim.out
128128 exit 1
129129 fi
130130
131131 # Report fail if simulation does not complete successfully
132- grep -F "SUCCESS: Program complete, exiting." sim.out
133- exit_status=$? #store 0 if found (success), 1 if not (failure )
132+ # store 0 if found (success), 1 if not (failure)
133+ exit_status= $(grep -F "SUCCESS: Program complete, exiting." sim.out )
134134 if [[ "$exit_status" -eq "1" ]]; then
135135 cat sim.out
136136 exit 1
You can’t perform that action at this time.
0 commit comments