There was an error while loading. Please reload this page.
1 parent 51749f6 commit a258ab1Copy full SHA for a258ab1
1 file changed
.github/workflows/pipeline.yaml
@@ -100,7 +100,10 @@ jobs:
100
OUTPUT=$(npx @modelcontextprotocol/conformance server --url http://localhost:8000/)
101
exit_code=$?
102
echo "$OUTPUT"
103
- passedTests=$(echo "$OUTPUT" | grep -oP '(?<=Total: )\d+ passed')
+
104
+ # Example: "Total: 3 passed, 16 failed"
105
+ passedTests=$(echo "$OUTPUT" | sed -nE 's/.*Total: ([0-9]+) passed.*/\1/p')
106
+ passedTests=${passedTests:-0}
107
[ "$passedTests" -lt 8 ] && exit $exit_code
108
109
qa:
0 commit comments