summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>2019-06-25 22:25:02 +0200
committerJan Kotas <jkotas@microsoft.com>2019-06-25 13:25:02 -0700
commit277f3fa59979fd370871fbcee5ce097b66169a3d (patch)
treeddc85797ff7cd1fbb719678ab34618c328d304c2 /tests
parent098a4af997f5b83fe90e483361699e8168afe6dd (diff)
downloadcoreclr-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.
Diffstat (limited to 'tests')
-rw-r--r--tests/src/performance/Scenario/JitBench/Benchmarks/WebAppBenchmarks.cs2
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")}")