Fix Windows test failures not being detected in CI (#36446)

Bug introduced in #35926 

Release Notes:

- N/A
1444cd9839Cole Miller committed on 8/19/2025, 2:53:10 PM· committed by GitHubparent6c255c1
6 files changedLine totals unavailable