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:
John Kleinschmidt 2019-09-03 13:13:06 -04:00 committed by GitHub
parent 96c3fec855
commit bedc5f7da9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 40 additions and 25 deletions

View file

@ -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) {

View file

@ -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))
}