summaryrefslogtreecommitdiff
path: root/tests/src/sizeondisk/sodbench/SoDBench.cs
diff options
context:
space:
mode:
authorJacek Blaszczynski <biosciencenow@outlook.com>2017-11-22 17:00:00 +0100
committerJan Kotas <jkotas@microsoft.com>2017-11-22 08:00:00 -0800
commit5b1895dd0600b6536410b373d26baa604b88de90 (patch)
treed6dbe3006ec720bbcc833e467cf9782b74e1cab9 /tests/src/sizeondisk/sodbench/SoDBench.cs
parent776690aad2bf8f5ecf69ea7b26c66bcd17489637 (diff)
downloadcoreclr-5b1895dd0600b6536410b373d26baa604b88de90.tar.gz
coreclr-5b1895dd0600b6536410b373d26baa604b88de90.tar.bz2
coreclr-5b1895dd0600b6536410b373d26baa604b88de90.zip
Fix all powershell invocations in scripts, CI code and tests to include -NoProfile (#15164)
Code execution in several scripts and tests can be affected by powershell profile execution at startup. Adding -NoProfile option to all powershell invocations which may be affected by execution of profile startup code.
Diffstat (limited to 'tests/src/sizeondisk/sodbench/SoDBench.cs')
-rw-r--r--tests/src/sizeondisk/sodbench/SoDBench.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/src/sizeondisk/sodbench/SoDBench.cs b/tests/src/sizeondisk/sodbench/SoDBench.cs
index ac544aba28..4c311ad320 100644
--- a/tests/src/sizeondisk/sodbench/SoDBench.cs
+++ b/tests/src/sizeondisk/sodbench/SoDBench.cs
@@ -416,7 +416,7 @@ namespace SoDBench
var psi = new ProcessStartInfo() {
WorkingDirectory = s_sandboxDir.FullName,
FileName = @"powershell.exe",
- Arguments = $"wget https://raw.githubusercontent.com/dotnet/cli/master/scripts/obtain/dotnet-install.ps1 -OutFile Dotnet-Install.ps1"
+ Arguments = $"-NoProfile wget https://raw.githubusercontent.com/dotnet/cli/master/scripts/obtain/dotnet-install.ps1 -OutFile Dotnet-Install.ps1"
};
LaunchProcess(psi, 180000);
}
@@ -426,7 +426,7 @@ namespace SoDBench
var psi = new ProcessStartInfo() {
WorkingDirectory = s_sandboxDir.FullName,
FileName = @"powershell.exe",
- Arguments = $".\\Dotnet-Install.ps1 -SharedRuntime -InstallDir .dotnet -Channel {s_dotnetChannel} -Architecture {s_targetArchitecture}"
+ Arguments = $"-NoProfile .\\Dotnet-Install.ps1 -SharedRuntime -InstallDir .dotnet -Channel {s_dotnetChannel} -Architecture {s_targetArchitecture}"
};
LaunchProcess(psi, 180000);
}
@@ -436,7 +436,7 @@ namespace SoDBench
var psi = new ProcessStartInfo() {
WorkingDirectory = s_sandboxDir.FullName,
FileName = @"powershell.exe",
- Arguments = $".\\Dotnet-Install.ps1 -InstallDir .dotnet -Channel {s_dotnetChannel} -Architecture {s_targetArchitecture}"
+ Arguments = $"-NoProfile .\\Dotnet-Install.ps1 -InstallDir .dotnet -Channel {s_dotnetChannel} -Architecture {s_targetArchitecture}"
};
LaunchProcess(psi, 180000);
}