Commit 5cb99eb
committed
Fix macOS script errors with empty arrays and sed
- Fix unbound variable error when FAILED_TESTS array is empty
- Check array length before expanding with [@] to avoid set -u errors
- Use conditional checks for empty arrays in JSON generation
- Fix sed 'first RE may not be empty' errors
- Use printf to ensure strings are properly formatted before sed
- Simplify sed escaping logic
- Fix empty array handling in summary log generation
- Add conditional checks for empty arrays in heredoc
Fixes macOS CI failures:
- 'FAILED_TESTS[@]: unbound variable' error
- 'sed: first RE may not be empty' errors1 parent c043269 commit 5cb99eb
1 file changed
Lines changed: 21 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | | - | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
317 | 323 | | |
318 | 324 | | |
319 | 325 | | |
320 | 326 | | |
321 | 327 | | |
322 | 328 | | |
323 | 329 | | |
324 | | - | |
325 | | - | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
326 | 342 | | |
327 | 343 | | |
328 | 344 | | |
| |||
372 | 388 | | |
373 | 389 | | |
374 | 390 | | |
375 | | - | |
| 391 | + | |
376 | 392 | | |
377 | 393 | | |
378 | | - | |
| 394 | + | |
379 | 395 | | |
380 | 396 | | |
381 | 397 | | |
| |||
0 commit comments