Skip to content

Commit 11ff382

Browse files
authored
[wasm] Try to work around NuGet-Migrations issue (#83833)
Works around a CI issue where we somehow can't access a named mutex and fails Contributes to #80619
1 parent 597a759 commit 11ff382

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

eng/testing/tests.browser.targets

+5-2
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,12 @@
9797
<_XHarnessArgs Condition="'$(_XHarnessTestsTimeout)' != '' " >$(_XHarnessArgs) &quot;--timeout=$(_XHarnessTestsTimeout)&quot;</_XHarnessArgs>
9898
<_XHarnessArgs Condition="'$(WasmXHarnessArgsCli)' != ''" >$(_XHarnessArgs) $(WasmXHarnessArgsCli)</_XHarnessArgs>
9999

100+
<!-- Works around https://github.com/dotnet/runtime/issues/80619 -->
101+
<_NugetWorkAroundCommand>dotnet new console</_NugetWorkAroundCommand>
102+
100103
<!-- There two flavors of WasmXHarnessArgs and WasmXHarnessMonoArgs, one is MSBuild property and the other is environment variable -->
101-
<RunScriptCommand Condition="'$(OS)' != 'Windows_NT'">$HARNESS_RUNNER $(_XHarnessArgs) %24XHARNESS_ARGS %24WasmXHarnessArgs -- $(WasmXHarnessMonoArgs) %24WasmXHarnessMonoArgs $(_AppArgs) %24WasmTestAppArgs</RunScriptCommand>
102-
<RunScriptCommand Condition="'$(OS)' == 'Windows_NT'">%HARNESS_RUNNER% $(_XHarnessArgs) %XHARNESS_ARGS% %WasmXHarnessArgs% -- $(WasmXHarnessMonoArgs) %WasmXHarnessMonoArgs% $(_AppArgs) %WasmTestAppArgs%</RunScriptCommand>
104+
<RunScriptCommand Condition="'$(OS)' != 'Windows_NT'">$(_NugetWorkAroundCommand) $(_ShellCommandSeparator) $HARNESS_RUNNER $(_XHarnessArgs) %24XHARNESS_ARGS %24WasmXHarnessArgs -- $(WasmXHarnessMonoArgs) %24WasmXHarnessMonoArgs $(_AppArgs) %24WasmTestAppArgs</RunScriptCommand>
105+
<RunScriptCommand Condition="'$(OS)' == 'Windows_NT'">$(_NugetWorkAroundCommand) $(_ShellCommandSeparator) %HARNESS_RUNNER% $(_XHarnessArgs) %XHARNESS_ARGS% %WasmXHarnessArgs% -- $(WasmXHarnessMonoArgs) %WasmXHarnessMonoArgs% $(_AppArgs) %WasmTestAppArgs%</RunScriptCommand>
103106
</PropertyGroup>
104107

105108
<PropertyGroup Condition="'$(BuildAOTTestsOnHelix)' == 'true'">

0 commit comments

Comments
 (0)