From 5b1895dd0600b6536410b373d26baa604b88de90 Mon Sep 17 00:00:00 2001 From: Jacek Blaszczynski Date: Wed, 22 Nov 2017 17:00:00 +0100 Subject: 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. --- build-test.cmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build-test.cmd') 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 -- cgit v1.2.3