From a78f8a878f8d1297f010ce5480950c91292b2377 Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Thu, 28 Sep 2023 16:30:38 +0200 Subject: [PATCH] test: enable websockets inclusion in WPTReport (#2284) --- test/wpt/start-websockets.mjs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/wpt/start-websockets.mjs b/test/wpt/start-websockets.mjs index b9d8162aa33..73fd945c4d6 100644 --- a/test/wpt/start-websockets.mjs +++ b/test/wpt/start-websockets.mjs @@ -4,6 +4,8 @@ import { fileURLToPath } from 'url' import { fork } from 'child_process' import { on } from 'events' +const { WPT_REPORT } = process.env + if (process.env.CI) { // TODO(@KhafraDev): figure out *why* these tests are flaky in the CI. // process.exit(0) @@ -19,7 +21,10 @@ child.on('exit', (code) => process.exit(code)) for await (const [message] of on(child, 'message')) { if (message.server) { - const runner = new WPTRunner('websockets', message.server) + const runner = new WPTRunner('websockets', message.server, { + appendReport: !!WPT_REPORT, + reportPath: WPT_REPORT + }) runner.run() runner.once('completion', () => {