Skip to content

Commit

Permalink
WBT: workaround for #76201
Browse files Browse the repository at this point in the history
  • Loading branch information
radical committed Sep 29, 2022
1 parent dec9861 commit 33e3679
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
16 changes: 13 additions & 3 deletions src/mono/wasm/Wasm.Build.Tests/WasmTemplateTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,19 @@ private void ConsoleBuildAndRun(string config, bool relinking, string extraNewAr

(int exitCode, string output) = RunProcess(s_buildEnv.DotNet, _testOutput, args: $"run --no-build -c {config} x y z", workingDir: _projectDir);
Assert.Equal(42, exitCode);
Assert.Contains("args[0] = x", output);
Assert.Contains("args[1] = y", output);
Assert.Contains("args[2] = z", output);
if (extraNewArgs.Contains("-f net7.0"))
{
// Workaround for https://github.com/dotnet/runtime/issues/76201
Assert.Contains("args[0] = dotnet", output);
Assert.Contains("args[1] = is", output);
Assert.Contains("args[2] = great!", output);
}
else
{
Assert.Contains("args[0] = x", output);
Assert.Contains("args[1] = y", output);
Assert.Contains("args[2] = z", output);
}
}

public static TheoryData<bool, bool, string> TestDataForAppBundleDir()
Expand Down
1 change: 0 additions & 1 deletion src/mono/wasm/Wasm.Build.Tests/data/nuget8.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<!-- Don't use any higher level config files. -->
<fallbackPackageFolders>
<clear />
<!--<add key="local" value="##\c " />-->
</fallbackPackageFolders>
<packageSources>
<clear />
Expand Down

0 comments on commit 33e3679

Please sign in to comment.