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

@ -78,14 +78,17 @@ app.whenReady().then(() => {
? new RegExp(process.env.npm_config_match, 'g')
: null
const testFiles = []
walker.on('file', (file) => {
if (/-spec\.[tj]s$/.test(file) &&
(!moduleMatch || moduleMatch.test(file))) {
mocha.addFile(file)
testFiles.push(file)
}
})
walker.on('end', () => {
testFiles.sort()
testFiles.forEach((file) => mocha.addFile(file))
const cb = () => {
// Ensure the callback is called after runner is defined
process.nextTick(() => {