From 3a64da7a54fe0b00706b6d0f83e01f1c3b13cd11 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Thu, 11 Nov 2021 18:32:22 +0100 Subject: [PATCH] fix: do not show taskkill.exe output (#10244) --- packages/playwright-core/src/utils/processLauncher.ts | 8 ++++++-- tests/config/commonFixtures.ts | 2 +- tests/signals.spec.ts | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/playwright-core/src/utils/processLauncher.ts b/packages/playwright-core/src/utils/processLauncher.ts index 5459340b39..79dc2e8d4a 100644 --- a/packages/playwright-core/src/utils/processLauncher.ts +++ b/packages/playwright-core/src/utils/processLauncher.ts @@ -172,8 +172,12 @@ export async function launchProcess(options: LaunchProcessOptions): Promise { const remoteServer = await startRemoteServer({ url: server.EMPTY_PAGE }); if (isWindows) - execSync(`taskkill /pid ${remoteServer.child().pid} /T /F`); + execSync(`taskkill /pid ${remoteServer.child().pid} /T /F`, { stdio: 'ignore' }); else process.kill(remoteServer.child().pid); // We might not get browser exitCode in time when killing the parent node process,