summaryrefslogtreecommitdiff
path: root/build-test.cmd
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 /build-test.cmd
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 'build-test.cmd')
-rw-r--r--build-test.cmd4
1 files changed, 2 insertions, 2 deletions
diff --git a/build-test.cmd b/build-test.cmd
index 7101ef12b1..137d6a3aa3 100644
--- a/build-test.cmd
+++ b/build-test.cmd
@@ -316,9 +316,9 @@ if errorlevel 1 (
REM Prepare the Test Drop
REM Cleans any NI from the last run
-powershell "Get-ChildItem -path %__TestWorkingDir% -Include '*.ni.*' -Recurse -Force | Remove-Item -force"
+powershell "-NoProfile Get-ChildItem -path %__TestWorkingDir% -Include '*.ni.*' -Recurse -Force | Remove-Item -force"
REM Cleans up any lock folder used for synchronization from last run
-powershell "Get-ChildItem -path %__TestWorkingDir% -Include 'lock' -Recurse -Force | where {$_.Attributes -eq 'Directory'}| Remove-Item -force -Recurse"
+powershell "-NoProfile Get-ChildItem -path %__TestWorkingDir% -Include 'lock' -Recurse -Force | where {$_.Attributes -eq 'Directory'}| Remove-Item -force -Recurse"
set CORE_ROOT=%__TestBinDir%\Tests\Core_Root
set CORE_ROOT_STAGE=%__TestBinDir%\Tests\Core_Root_Stage