diff --git a/devops/scripts/windows_detect_hung_tests.ps1 b/devops/scripts/windows_detect_hung_tests.ps1 index 7d053083a3deb..1e1e8b2f69f8d 100644 --- a/devops/scripts/windows_detect_hung_tests.ps1 +++ b/devops/scripts/windows_detect_hung_tests.ps1 @@ -3,6 +3,6 @@ $hungTests = Get-Process | Where-Object { ($_.Path -match "llvm\\install") -or ( $hungTests | Foreach-Object { $exitCode = 1 echo "Test $($_.Path) hung!" - Stop-Process -Force $_ + tskill $_.ID } exit $exitCode