From 6e8c2c5d8d6e1be41e67f41b555ac357698d8665 Mon Sep 17 00:00:00 2001 From: Playwright Service <89237858+playwrightmachine@users.noreply.github.com> Date: Mon, 26 Sep 2022 11:40:15 -0700 Subject: [PATCH] chery-pick(#17579): fix(driver): with CWD which contained spaces (#17593) This PR cherry-picks the following commits: - a5eee6d960aa3f27ca48d1e7b283e935a7a4460c Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> --- utils/build/run-driver-win.cmd | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/utils/build/run-driver-win.cmd b/utils/build/run-driver-win.cmd index 007cac8a70..3e52e50fcc 100755 --- a/utils/build/run-driver-win.cmd +++ b/utils/build/run-driver-win.cmd @@ -1,4 +1,6 @@ -@ECHO OFF -SETLOCAL -IF %PLAYWRIGHT_NODEJS_PATH%x == x SET PLAYWRIGHT_NODEJS_PATH="%~dp0\node.exe" -"%PLAYWRIGHT_NODEJS_PATH%" "%~dp0\package\lib\cli\cli.js" %* +@echo off +setlocal +if not defined PLAYWRIGHT_NODEJS_PATH ( + set PLAYWRIGHT_NODEJS_PATH=%~dp0\node.exe +) +"""%PLAYWRIGHT_NODEJS_PATH%""" "%~dp0\package\lib\cli\cli.js" %*