Skip to content

Commit a258ab1

Browse files
committed
fix syntax
1 parent 51749f6 commit a258ab1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/pipeline.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ jobs:
100100
OUTPUT=$(npx @modelcontextprotocol/conformance server --url http://localhost:8000/)
101101
exit_code=$?
102102
echo "$OUTPUT"
103-
passedTests=$(echo "$OUTPUT" | grep -oP '(?<=Total: )\d+ passed')
103+
104+
# Example: "Total: 3 passed, 16 failed"
105+
passedTests=$(echo "$OUTPUT" | sed -nE 's/.*Total: ([0-9]+) passed.*/\1/p')
106+
passedTests=${passedTests:-0}
104107
[ "$passedTests" -lt 8 ] && exit $exit_code
105108
106109
qa:

0 commit comments

Comments
 (0)