[Backport 7.x] Fixed integration test runner (#1319)

Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2020-09-23 12:39:38 +02:00
committed by GitHub
parent 8263f35f60
commit e26b9fc549

View File

@ -19,6 +19,11 @@
'use strict'
process.on('unhandledRejection', function (err) {
console.error(err)
process.exit(1)
})
const { writeFileSync, readFileSync, accessSync, mkdirSync, readdirSync, statSync } = require('fs')
const { join, sep } = require('path')
const yaml = require('js-yaml')
@ -197,8 +202,11 @@ async function start ({ client, isXPack }) {
const tests = data
.split('\n---\n')
.map(s => s.trim())
// empty strings
.filter(Boolean)
.map(parse)
// null values
.filter(Boolean)
// get setup and teardown if present
var setupTest = null