Renamed log skip function (#1061)
This commit is contained in:
committed by
GitHub
parent
01b233428f
commit
416ace2e30
@ -219,7 +219,7 @@ function build (opts = {}) {
|
|||||||
// we should skip the entire test file
|
// we should skip the entire test file
|
||||||
const skip = getSkip(setup) || getSkip(teardown)
|
const skip = getSkip(setup) || getSkip(teardown)
|
||||||
if (skip && shouldSkip(esVersion, skip)) {
|
if (skip && shouldSkip(esVersion, skip)) {
|
||||||
skip(skip)
|
logSkip(skip)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -444,7 +444,7 @@ function build (opts = {}) {
|
|||||||
for (const action of actions) {
|
for (const action of actions) {
|
||||||
if (action.skip) {
|
if (action.skip) {
|
||||||
if (shouldSkip(esVersion, action.skip)) {
|
if (shouldSkip(esVersion, action.skip)) {
|
||||||
skip(fillStashedValues(action.skip))
|
logSkip(fillStashedValues(action.skip))
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -800,13 +800,13 @@ function getRandomInt (min, max) {
|
|||||||
* @param {object} the actions
|
* @param {object} the actions
|
||||||
* @returns {TestRunner}
|
* @returns {TestRunner}
|
||||||
*/
|
*/
|
||||||
function skip (action) {
|
function logSkip (action) {
|
||||||
if (action.reason && action.version) {
|
if (action.reason && action.version) {
|
||||||
// tap.comment(`Skip: ${action.reason} (${action.version})`)
|
console.log(`Skip: ${action.reason} (${action.version})`)
|
||||||
} else if (action.features) {
|
} else if (action.features) {
|
||||||
// tap.comment(`Skip: ${JSON.stringify(action.features)})`)
|
console.log(`Skip: ${JSON.stringify(action.features)})`)
|
||||||
} else {
|
} else {
|
||||||
// tap.comment('Skipped')
|
console.log('Skipped')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user