Skip to content

Commit

Permalink
CI: Fix output parsing when translator name contains capital T
Browse files Browse the repository at this point in the history
This is not ideal.

Fixes #3414
  • Loading branch information
AbeJellinek committed Jan 29, 2025
1 parent 248804f commit 107cabd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .ci/pull-request-check/selenium-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function report(results) {
let padding = 2;
let output = translatorResults.message.split("\n");
for (let line of output) {
if (line.match(/^TranslatorTester: Running [^T]*Test [0-9]*$/) ||
if (line.match(/^TranslatorTester: Running .+ Test [0-9]*$/) ||
line.match(/^TranslatorTester: Running [0-9]* tests for .*$/)) {
console.log(" ".repeat(padding-1) + chalk.bgCyan(chalk.black(line)));
}
Expand All @@ -72,14 +72,14 @@ function report(results) {
else if (line.match(/^\+/)) {
console.log(chalk.green("+" + " ".repeat(padding) + line.substr(1)));
}
else if (line.match(/^TranslatorTester: [^T]*Test [0-9]*: succeeded/)) {
else if (line.match(/^TranslatorTester: .+ Test [0-9]*: succeeded/)) {
console.log(" ".repeat(padding) + chalk.bgGreen(line));
}
else if (line.match(/^TranslatorTester: [^T]*Test [0-9]*: unknown/)) {
else if (line.match(/^TranslatorTester: .+ Test [0-9]*: unknown/)) {
console.log(" ".repeat(padding) + chalk.bgYellow(chalk.black(line)));
allPassed = false;
}
else if (line.match(/^TranslatorTester: [^T]*Test [0-9]*: failed/)) {
else if (line.match(/^TranslatorTester: .+ Test [0-9]*: failed/)) {
console.log(" ".repeat(padding) + chalk.bgRed(line));
allPassed = false;
}
Expand Down

0 comments on commit 107cabd

Please sign in to comment.