From e7a37f4ab727ab490507bd011fe22fee1db4f73e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Fi=C5=A1era?= Date: Tue, 12 Nov 2024 09:42:48 +0100 Subject: [PATCH 1/2] Run downlevel tests only on main --- .../wasm/Wasm.Build.Tests/NonWasmTemplateBuildTests.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/mono/wasm/Wasm.Build.Tests/NonWasmTemplateBuildTests.cs b/src/mono/wasm/Wasm.Build.Tests/NonWasmTemplateBuildTests.cs index 4f86c39c3addf..e23a9f91e3865 100644 --- a/src/mono/wasm/Wasm.Build.Tests/NonWasmTemplateBuildTests.cs +++ b/src/mono/wasm/Wasm.Build.Tests/NonWasmTemplateBuildTests.cs @@ -67,9 +67,13 @@ public NonWasmTemplateBuildTests(ITestOutputHelper output, SharedBuildPerTestCla ) .MultiplyWithSingleArgs ( - "net6.0", - s_previousTargetFramework, - s_latestTargetFramework + EnvironmentVariables.WorkloadsTestPreviousVersions + ? [s_latestTargetFramework] + : [ + "net6.0", + s_previousTargetFramework, + s_latestTargetFramework + ] ) .UnwrapItemsAsArrays().ToList(); From 7d6283f9820f31a5501fc72c2508d71035b4e27b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Fi=C5=A1era?= Date: Tue, 12 Nov 2024 15:57:09 +0100 Subject: [PATCH 2/2] Invert the condition... --- src/mono/wasm/Wasm.Build.Tests/NonWasmTemplateBuildTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mono/wasm/Wasm.Build.Tests/NonWasmTemplateBuildTests.cs b/src/mono/wasm/Wasm.Build.Tests/NonWasmTemplateBuildTests.cs index e23a9f91e3865..90ce88af865f7 100644 --- a/src/mono/wasm/Wasm.Build.Tests/NonWasmTemplateBuildTests.cs +++ b/src/mono/wasm/Wasm.Build.Tests/NonWasmTemplateBuildTests.cs @@ -68,12 +68,12 @@ public NonWasmTemplateBuildTests(ITestOutputHelper output, SharedBuildPerTestCla .MultiplyWithSingleArgs ( EnvironmentVariables.WorkloadsTestPreviousVersions - ? [s_latestTargetFramework] - : [ + ? [ "net6.0", s_previousTargetFramework, s_latestTargetFramework ] + : [s_latestTargetFramework] ) .UnwrapItemsAsArrays().ToList();