diff --git a/devops/scripts/windows_detect_hung_tests.ps1 b/devops/scripts/windows_detect_hung_tests.ps1 new file mode 100644 index 0000000000000..7d053083a3deb --- /dev/null +++ b/devops/scripts/windows_detect_hung_tests.ps1 @@ -0,0 +1,8 @@ +$exitCode = 0 +$hungTests = Get-Process | Where-Object { ($_.Path -match "llvm\\install") -or ($_.Path -match "llvm\\build-e2e") } +$hungTests | Foreach-Object { + $exitCode = 1 + echo "Test $($_.Path) hung!" + Stop-Process -Force $_ +} +exit $exitCode