Browse Source

ci: actually kill leftover processes on WOA testing (#20292)

* ci: only kill WOA processes if they are running

(cherry picked from commit 844752cd97c4b010f0467bbfdfe4940934945523)

* ci: actually kill leftover processes on WOA testing

(cherry picked from commit a76d2d8e53458447579b865febbfaef5b2921f94)
trop[bot] 5 years ago
parent
commit
ce31dc3591
1 changed files with 3 additions and 3 deletions
  1. 3 3
      azure-pipelines-woa.yml

+ 3 - 3
azure-pipelines-woa.yml

@@ -77,8 +77,8 @@ steps:
     python electron\script\verify-ffmpeg.py --build-dir out\Default --source-root %cd% --ffmpeg-path out\ffmpeg
   displayName: 'Verify ffmpeg'
 
-- script: |
-    taskkill /F /IM electron.exe
-    taskkill /F /IM MicrosoftEdge.exe
+- powershell: |
+    Get-Process | Where Name –Like "electron*" | Stop-Process
+    Get-Process | Where Name –Like "MicrosoftEdge*" | Stop-Process
   displayName: 'Kill processes left running from last test run'
   condition: always()