Skip to content

Commit 39f9930

Browse files
committed
Fix running WASM tests locally on Windows.
Set BROWSER_PATH variable only when HELIX_CORRELATION_PAYLOAD variable is set. Fixes change in the dotnet#62779.
1 parent 699b0ae commit 39f9930

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

eng/testing/WasmRunnerTemplate.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ if /I [%XHARNESS_COMMAND%] == [test] (
4848
set "JS_ENGINE_ARGS=--engine-arg^=--stack-trace-limit^=1000"
4949
)
5050
) else (
51-
if [%BROWSER_PATH%] == [] (
51+
if [%BROWSER_PATH%] == [] if not [%HELIX_CORRELATION_PAYLOAD%] == [] (
5252
set "BROWSER_PATH=--browser-path^=%HELIX_CORRELATION_PAYLOAD%\chrome-win\chrome.exe"
5353
)
5454
)

src/tests/BuildWasmApps/Wasm.Build.Tests/data/RunScriptTemplate.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ if /I [%XHARNESS_COMMAND%] == [test] (
4949
set "JS_ENGINE_ARGS=--engine-arg^=--stack-trace-limit^=1000"
5050
)
5151
) else (
52-
if [%BROWSER_PATH%] == [] (
52+
if [%BROWSER_PATH%] == [] if not [%HELIX_CORRELATION_PAYLOAD%] == [] (
5353
set "BROWSER_PATH=--browser-path^=%HELIX_CORRELATION_PAYLOAD%\chrome-win\chrome.exe"
5454
)
5555
)

0 commit comments

Comments
 (0)