mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
ci: run tests on WOA hardware (#20031)
* ci: run tests on WOA hardware * Temporarily disable test until #20008 is resolved * deterministically run tests in sorted order
This commit is contained in:
committed by
GitHub
parent
96c3fec855
commit
bedc5f7da9
@@ -84,14 +84,17 @@
|
||||
? new RegExp(process.env.npm_config_match, 'g')
|
||||
: null
|
||||
|
||||
const testFiles = []
|
||||
walker.on('file', (file) => {
|
||||
if (/-spec\.js$/.test(file) && !file.includes(crashSpec) &&
|
||||
(!moduleMatch || moduleMatch.test(file))) {
|
||||
mocha.addFile(file)
|
||||
testFiles.push(file)
|
||||
}
|
||||
})
|
||||
|
||||
walker.on('end', () => {
|
||||
testFiles.sort()
|
||||
testFiles.forEach((file) => mocha.addFile(file))
|
||||
if (!process.env.npm_config_match || new RegExp(process.env.npm_config_match, 'g').test(crashSpec)) {
|
||||
mocha.addFile(path.resolve(__dirname, '..', crashSpec))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user