Skip to content

Commit

Permalink
run-tests.js stability
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Mar 7, 2020
1 parent de459f5 commit a9b8105
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions run-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,21 @@ const exec = (bin, ...args) =>
output = ansi.strip (output.trim ())
stderr = ansi.strip (stderr)

const regex = /^\[[^\] ]+\]/mg
const regex = /\[[a-z]+?\]/gmi

let match = undefined
const warnings = []

match = regex.exec (output)

do {
if (match = regex.exec (output)) {
warnings.push (match[0])
}
} while (match);
if (match) {
warnings.push (match[0])
do {
if (match = regex.exec (output)) {
warnings.push (match[0])
}
} while (match);
}

return_ ({
failed: code !== 0,
Expand Down

0 comments on commit a9b8105

Please sign in to comment.