mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
build: Fix windows test hang (#17271)
* Try to track down test hangs
* Run tests with cmd instead of powershell
* Fix skip condition
* Update libcc to latest
* Turn off verbose logging on tests
* Revert "Update libcc to latest"
This reverts commit 972bbe0f3f.
This commit is contained in:
committed by
Samuel Attard
parent
60d85d03a4
commit
d29afb5f49
17
appveyor.yml
17
appveyor.yml
@@ -5,7 +5,7 @@ build_script:
|
||||
echo "Build worker image $env:APPVEYOR_BUILD_WORKER_IMAGE"
|
||||
|
||||
&"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe"
|
||||
|
||||
|
||||
if($env:SKIP_GYP_BUILD -eq "true") {
|
||||
Write-warning "Skipping debug build for older branch"; Exit-AppveyorBuild
|
||||
} elseif(($env:APPVEYOR_PULL_REQUEST_HEAD_REPO_NAME -split "/")[0] -eq ($env:APPVEYOR_REPO_NAME -split "/")[0]) {
|
||||
@@ -43,20 +43,11 @@ test_script:
|
||||
if (Test-Path Env:\ELECTRON_RELEASE) {
|
||||
Write-Output "Skipping tests for release build"
|
||||
} else {
|
||||
$env:RUN_TESTS="true"
|
||||
Write-Output "Running tests for debug build"
|
||||
python script\test.py --ci --rebuild_native_modules
|
||||
if ($LASTEXITCODE -ne '0') {
|
||||
throw "Tests failed with exit code $LASTEXITCODE"
|
||||
} else {
|
||||
Write-Output "Tests succeeded."
|
||||
}
|
||||
python script\verify-ffmpeg.py
|
||||
if ($LASTEXITCODE -ne '0') {
|
||||
throw "Verify ffmpeg failed with exit code $LASTEXITCODE"
|
||||
} else {
|
||||
"Verify ffmpeg succeeded."
|
||||
}
|
||||
}
|
||||
- if "%RUN_TESTS%"=="true" ( echo Running test suite & python script\test.py --ci --rebuild_native_modules)
|
||||
- if "%RUN_TESTS%"=="true" ( echo Running verify ffmpeg & python script\verify-ffmpeg.py)
|
||||
artifacts:
|
||||
- path: test-results.xml
|
||||
name: test-results.xml
|
||||
|
||||
@@ -2791,9 +2791,11 @@ describe('BrowserWindow module', () => {
|
||||
})
|
||||
|
||||
describe('window.getNativeWindowHandle()', () => {
|
||||
if (!nativeModulesEnabled) {
|
||||
this.skip()
|
||||
}
|
||||
before(function () {
|
||||
if (!nativeModulesEnabled) {
|
||||
this.skip()
|
||||
}
|
||||
})
|
||||
|
||||
it('returns valid handle', () => {
|
||||
// The module's source code is hosted at
|
||||
|
||||
Reference in New Issue
Block a user