diff --git a/src/mono/wasm/Wasm.Build.Tests/NonWasmTemplateBuildTests.cs b/src/mono/wasm/Wasm.Build.Tests/NonWasmTemplateBuildTests.cs index 4f86c39c3addf..90ce88af865f7 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 + ? [ + "net6.0", + s_previousTargetFramework, + s_latestTargetFramework + ] + : [s_latestTargetFramework] ) .UnwrapItemsAsArrays().ToList();