Fixed integration test runner (#1318)
This commit is contained in:
committed by
GitHub
parent
a064f0f357
commit
7b11152a12
@ -19,6 +19,11 @@
|
|||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
process.on('unhandledRejection', function (err) {
|
||||||
|
console.error(err)
|
||||||
|
process.exit(1)
|
||||||
|
})
|
||||||
|
|
||||||
const { writeFileSync, readFileSync, accessSync, mkdirSync, readdirSync, statSync } = require('fs')
|
const { writeFileSync, readFileSync, accessSync, mkdirSync, readdirSync, statSync } = require('fs')
|
||||||
const { join, sep } = require('path')
|
const { join, sep } = require('path')
|
||||||
const yaml = require('js-yaml')
|
const yaml = require('js-yaml')
|
||||||
@ -203,8 +208,11 @@ async function start ({ client, isXPack }) {
|
|||||||
const tests = data
|
const tests = data
|
||||||
.split('\n---\n')
|
.split('\n---\n')
|
||||||
.map(s => s.trim())
|
.map(s => s.trim())
|
||||||
|
// empty strings
|
||||||
.filter(Boolean)
|
.filter(Boolean)
|
||||||
.map(parse)
|
.map(parse)
|
||||||
|
// null values
|
||||||
|
.filter(Boolean)
|
||||||
|
|
||||||
// get setup and teardown if present
|
// get setup and teardown if present
|
||||||
var setupTest = null
|
var setupTest = null
|
||||||
|
|||||||
Reference in New Issue
Block a user