Skip to content

Commit f8a62eb

Browse files
committed
Think this should fix the grep output verification errors
1 parent 82d83a2 commit f8a62eb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/trunk.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)