From 81e81ed8543073603f2adb694124ab457934d969 Mon Sep 17 00:00:00 2001 From: uzlopak Date: Thu, 18 Jan 2024 07:09:18 +0100 Subject: [PATCH] fix: hide statusOutput if empty in handleRunnerCompletion --- test/wpt/runner/runner.mjs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/wpt/runner/runner.mjs b/test/wpt/runner/runner.mjs index a97b72377f7..8af9eb7c68d 100644 --- a/test/wpt/runner/runner.mjs +++ b/test/wpt/runner/runner.mjs @@ -301,13 +301,16 @@ export class WPTRunner extends EventEmitter { * Called after every test has completed. */ handleRunnerCompletion () { - console.log(this.#statusOutput) // tests that failed + // tests that failed + if (Object.keys(this.#statusOutput).length !== 0) { + console.log(this.#statusOutput) + } this.emit('completion') const { completed, failed, success, expectedFailures, skipped } = this.#stats console.log( `[${this.#folderName}]: ` + - `Completed: ${completed}, failed: ${failed}, success: ${success}, ` + + `completed: ${completed}, failed: ${failed}, success: ${success}, ` + `expected failures: ${expectedFailures}, ` + `unexpected failures: ${failed - expectedFailures}, ` + `skipped: ${skipped}`