diff options
author | Michal Strehovský <MichalStrehovsky@users.noreply.github.com> | 2019-06-25 22:25:02 +0200 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2019-06-25 13:25:02 -0700 |
commit | 277f3fa59979fd370871fbcee5ce097b66169a3d (patch) | |
tree | ddc85797ff7cd1fbb719678ab34618c328d304c2 | |
parent | 098a4af997f5b83fe90e483361699e8168afe6dd (diff) | |
download | coreclr-277f3fa59979fd370871fbcee5ce097b66169a3d.tar.gz coreclr-277f3fa59979fd370871fbcee5ce097b66169a3d.tar.bz2 coreclr-277f3fa59979fd370871fbcee5ce097b66169a3d.zip |
JitBench: Run PowerShell with an execution policy (#25259)
PowerShell is useless without this argument in default Windows configurations.
-rw-r--r-- | tests/src/performance/Scenario/JitBench/Benchmarks/WebAppBenchmarks.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/performance/Scenario/JitBench/Benchmarks/WebAppBenchmarks.cs b/tests/src/performance/Scenario/JitBench/Benchmarks/WebAppBenchmarks.cs index 6a87419eb8..516aaa076d 100644 --- a/tests/src/performance/Scenario/JitBench/Benchmarks/WebAppBenchmarks.cs +++ b/tests/src/performance/Scenario/JitBench/Benchmarks/WebAppBenchmarks.cs @@ -102,7 +102,7 @@ namespace JitBench string tfm = DotNetSetup.GetTargetFrameworkMonikerForFrameworkVersion(dotNetInstall.FrameworkVersion); string storeDirName = ".store"; await (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? - new ProcessRunner("powershell.exe", $".\\AspNet-GenerateStore.ps1 -InstallDir {storeDirName} -Architecture {dotNetInstall.Architecture} -Runtime win7-{dotNetInstall.Architecture}") : + new ProcessRunner("powershell.exe", $"-ExecutionPolicy Bypass .\\AspNet-GenerateStore.ps1 -InstallDir {storeDirName} -Architecture {dotNetInstall.Architecture} -Runtime win7-{dotNetInstall.Architecture}") : new ProcessRunner("bash", $"./aspnet-generatestore.sh --install-dir {storeDirName} --architecture {dotNetInstall.Architecture} --runtime-id linux-{dotNetInstall.Architecture} -f {tfm} --fx-version {dotNetInstall.FrameworkVersion}")) .WithWorkingDirectory(GetJitBenchRepoRootDir(outputDir)) .WithEnvironmentVariable("PATH", $"{dotNetInstall.DotNetDir}{Path.PathSeparator}{Environment.GetEnvironmentVariable("PATH")}") |