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:
parent
96c3fec855
commit
bedc5f7da9
8 changed files with 40 additions and 25 deletions
|
@ -157,7 +157,7 @@ describe('crashReporter module', () => {
|
|||
return
|
||||
}
|
||||
// TODO(alexeykuzmin): Skip the test instead of marking it as passed.
|
||||
if (process.env.APPVEYOR === 'True') return done()
|
||||
if (process.platform === 'win32') return done()
|
||||
this.timeout(specTimeout)
|
||||
stopServer = startServer({
|
||||
callback (port) {
|
||||
|
|
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue