Skip to content

Commit 18c08f5

Browse files
committed
fixup! use shell when spawning .bat or .cmd files
1 parent fb6359d commit 18c08f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/automation/src/playwrightBrowser.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,11 @@ async function launchServer(options: LaunchOptions) {
7272
logger.log(`Storing log files into '${serverLogsPath}'`);
7373

7474
logger.log(`Command line: '${serverLocation}' ${args.join(' ')}`);
75+
const shell: boolean = (process.platform === 'win32');
7576
const serverProcess = spawn(
7677
serverLocation,
7778
args,
78-
{ env }
79+
{ env, shell }
7980
);
8081

8182
logger.log(`Started server for browser smoke tests (pid: ${serverProcess.pid})`);

0 commit comments

Comments
 (0)