path: root/build-test.cmd
diff options
authorJacek Blaszczynski <>2017-11-22 16:00:00 (GMT)
committerJan Kotas <>2017-11-22 16:00:00 (GMT)
commit5b1895dd0600b6536410b373d26baa604b88de90 (patch)
treed6dbe3006ec720bbcc833e467cf9782b74e1cab9 /build-test.cmd
parent776690aad2bf8f5ecf69ea7b26c66bcd17489637 (diff)
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')
1 files changed, 2 insertions, 2 deletions
diff --git a/build-test.cmd b/build-test.cmd
index 7101ef1..137d6a3 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