diff options
author | Jacek Blaszczynski <biosciencenow@outlook.com> | 2017-11-22 17:00:00 +0100 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2017-11-22 08:00:00 -0800 |
commit | 5b1895dd0600b6536410b373d26baa604b88de90 (patch) | |
tree | d6dbe3006ec720bbcc833e467cf9782b74e1cab9 /tests/runtest.cmd | |
parent | 776690aad2bf8f5ecf69ea7b26c66bcd17489637 (diff) | |
download | coreclr-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/runtest.cmd')
-rw-r--r-- | tests/runtest.cmd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/runtest.cmd b/tests/runtest.cmd index 2ddda53db2..2db98b9842 100644 --- a/tests/runtest.cmd +++ b/tests/runtest.cmd @@ -190,9 +190,9 @@ if defined DoLink ( 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" if defined CORE_ROOT goto SkipCoreRootSetup |