Make killall Electron more friendly

This commit is contained in:
John Kleinschmidt 2018-09-21 10:39:29 -04:00
parent 96ec3e9162
commit bfaf3f458f

View file

@ -131,6 +131,9 @@ jobs:
mkdir -p src/out/ffmpeg
git clone https://github.com/electron/electron src/electron
(cd src/electron; git fetch origin +"${BUILD_SOURCEBRANCH}"; git checkout "${BUILD_SOURCEVERSION}")
cd src
export CHROMIUM_BUILDTOOLS_PATH=`pwd`/buildtools
echo "##vso[task.setvariable variable=CHROMIUM_BUILDTOOLS_PATH]`pwd`/buildtools"
displayName: Checkout Electron
- task: DownloadBuildArtifacts@0
@ -143,7 +146,7 @@ jobs:
displayName: 'Download ffmpeg.dylib for testing'
inputs:
artifactName: ffmpeg
downloadPath: '$(System.DefaultWorkingDirectory)/src/out/ffmpeg'
downloadPath: '$(System.DefaultWorkingDirectory)/src/out'
- task: DownloadBuildArtifacts@0
displayName: 'Download Node.js headers'
@ -157,8 +160,9 @@ jobs:
displayName: Unzip Electron app
- bash: |
set +e
killall Electron
if pgrep Electron; then
killall Electron
fi
displayName: Make sure Electron isn't running from previous tests
- bash: |