Skip to content

Commit 2a38180

Browse files
committed
WBT: workaround for #76201
1 parent 24a7fe3 commit 2a38180

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

src/mono/wasm/Wasm.Build.Tests/WasmTemplateTests.cs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,19 @@ private void ConsoleBuildAndRun(string config, bool relinking, string extraNewAr
222222

223223
(int exitCode, string output) = RunProcess(s_buildEnv.DotNet, _testOutput, args: $"run --no-build -c {config} x y z", workingDir: _projectDir);
224224
Assert.Equal(42, exitCode);
225-
Assert.Contains("args[0] = x", output);
226-
Assert.Contains("args[1] = y", output);
227-
Assert.Contains("args[2] = z", output);
225+
if (extraNewArgs.Contains("-f net7.0"))
226+
{
227+
// Workaround for https://github.com/dotnet/runtime/issues/76201
228+
Assert.Contains("args[0] = dotnet", output);
229+
Assert.Contains("args[1] = is", output);
230+
Assert.Contains("args[2] = great!", output);
231+
}
232+
else
233+
{
234+
Assert.Contains("args[0] = x", output);
235+
Assert.Contains("args[1] = y", output);
236+
Assert.Contains("args[2] = z", output);
237+
}
228238
}
229239

230240
public static TheoryData<bool, bool, string> TestDataForAppBundleDir()

src/mono/wasm/Wasm.Build.Tests/data/nuget8.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<!-- Don't use any higher level config files. -->
44
<fallbackPackageFolders>
55
<clear />
6-
<!--<add key="local" value="##\c " />-->
76
</fallbackPackageFolders>
87
<packageSources>
98
<clear />

0 commit comments

Comments
 (0)