Commit ff02cbb
committed
fix: Two bash issues in workflow - test parsing and counter increment
1. Fix test count parsing (cross-platform):
- Issue: grep -P fails on macOS/Windows (BSD grep, Git Bash)
- Solution: Use sed with BRE instead
- Parses: '===== 43 passed in 44.79s ====='
- Extracts numbers with: sed -n 's/.*=.*\([0-9][0-9]*\) passed.*/\1/p'
2. Fix JAR exclusion counter:
- Issue: ((EXCLUSION_COUNT++)) returns exit code 1 with set -e
- Solution: Use EXCLUSION_COUNT=$((EXCLUSION_COUNT + 1))
- Now works with bash -e -o pipefail flags
Result: All 5 platforms show correct test counts and JAR filtering works1 parent ca4bbfd commit ff02cbb
1 file changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
220 | 226 | | |
221 | 227 | | |
222 | 228 | | |
| |||
0 commit comments