From 32084193fb720e9b85217630821875d39eb7be36 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Mon, 2 Oct 2023 12:58:10 -0400 Subject: [PATCH] [wasm] Set InstallV8ForTests=true only for windows/linux .. on CI, or in a container (like codespaces). Without this it would be `true` on macOS by default, and then fail with: `error : V8 provisioning only supported on Linux, and windows.` --- eng/testing/tests.browser.targets | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eng/testing/tests.browser.targets b/eng/testing/tests.browser.targets index b4c2dbefc0973..2ce5f332cb8ea 100644 --- a/eng/testing/tests.browser.targets +++ b/eng/testing/tests.browser.targets @@ -29,8 +29,9 @@ ('$(ContinuousIntegrationBuild)' != 'true' or Exists('/.dockerenv')) and '$(Scenario)' == 'WasmTestOnBrowser'">true true + ('$(ContinuousIntegrationBuild)' == 'true' or Exists('/.dockerenv')) and + ($([MSBuild]::IsOSPlatform('windows')) or $([MSBuild]::IsOSPlatform('linux')))" + >true _GetRuntimePackNuGetsToBuild;_GetNugetsForAOT;$(GetNuGetsToBuildForWorkloadTestingDependsOn) <_BundleAOTTestWasmAppForHelixDependsOn>$(_BundleAOTTestWasmAppForHelixDependsOn);PrepareForWasmBuildApp;_PrepareForAOTOnHelix