Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit b9b174d

Browse files
BruceForstalljkotas
authored andcommitted
Fix Powershell error (#15217)
1 parent d6c7e5e commit b9b174d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

build-test.cmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,9 @@ if errorlevel 1 (
316316

317317
REM Prepare the Test Drop
318318
REM Cleans any NI from the last run
319-
powershell "-NoProfile Get-ChildItem -path %__TestWorkingDir% -Include '*.ni.*' -Recurse -Force | Remove-Item -force"
319+
powershell -NoProfile "Get-ChildItem -path %__TestWorkingDir% -Include '*.ni.*' -Recurse -Force | Remove-Item -force"
320320
REM Cleans up any lock folder used for synchronization from last run
321-
powershell "-NoProfile Get-ChildItem -path %__TestWorkingDir% -Include 'lock' -Recurse -Force | where {$_.Attributes -eq 'Directory'}| Remove-Item -force -Recurse"
321+
powershell -NoProfile "Get-ChildItem -path %__TestWorkingDir% -Include 'lock' -Recurse -Force | where {$_.Attributes -eq 'Directory'}| Remove-Item -force -Recurse"
322322

323323
set CORE_ROOT=%__TestBinDir%\Tests\Core_Root
324324
set CORE_ROOT_STAGE=%__TestBinDir%\Tests\Core_Root_Stage

tests/debugger_tests/ConfigFilesGenerators/GenerateConfig.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if exist %__ConfigFileName% (
3333
)
3434

3535
:: powershell "Get-Content %__TemplateFileName% -replace (""##Insert_Runtime_Root##"", ""%__RuntimeRoot%"") | Output-File %__ConfigFileName% "
36-
powershell "-NoProfile (Get-Content \"%__TemplateFileName%\")`"^
36+
powershell -NoProfile "(Get-Content \"%__TemplateFileName%\")`"^
3737
"-replace \"##Insert_Runtime_Root##\", \"%__RuntimeRoot%\" `"^
3838
"|ForEach-Object{$_ -replace \"##Insert_Nuget_Cache_Root##\", \"%__NugetCacheDir%\"} `"^
3939
"|ForEach-Object{$_ -replace \"##Cli_Path##\", \"%__CliPath%\"} `"^

tests/runtest.cmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ if defined DoLink (
190190

191191
REM Prepare the Test Drop
192192
REM Cleans any NI from the last run
193-
powershell "-NoProfile Get-ChildItem -path %__TestWorkingDir% -Include '*.ni.*' -Recurse -Force | Remove-Item -force"
193+
powershell -NoProfile "Get-ChildItem -path %__TestWorkingDir% -Include '*.ni.*' -Recurse -Force | Remove-Item -force"
194194
REM Cleans up any lock folder used for synchronization from last run
195-
powershell "-NoProfile Get-ChildItem -path %__TestWorkingDir% -Include 'lock' -Recurse -Force | where {$_.Attributes -eq 'Directory'}| Remove-Item -force -Recurse"
195+
powershell -NoProfile "Get-ChildItem -path %__TestWorkingDir% -Include 'lock' -Recurse -Force | where {$_.Attributes -eq 'Directory'}| Remove-Item -force -Recurse"
196196

197197
if defined CORE_ROOT goto SkipCoreRootSetup
198198

tests/scripts/run-gc-reliability-framework.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
set CORE_ROOT=%CD%\bin\tests\Windows_NT.%1.%2\Tests\Core_Root
88
set FRAMEWORK_DIR=%CD%\bin\tests\Windows_NT.%1.%2\GC\Stress\Framework\ReliabilityFramework
9-
powershell "-NoProfile %CORE_ROOT%\CoreRun.exe %FRAMEWORK_DIR%\ReliabilityFramework.exe %FRAMEWORK_DIR%\testmix_gc.config"
9+
powershell -NoProfile "%CORE_ROOT%\CoreRun.exe %FRAMEWORK_DIR%\ReliabilityFramework.exe %FRAMEWORK_DIR%\testmix_gc.config"
1010
if %ERRORLEVEL% == 100 (
1111
@rem The ReliabilityFramework returns 100 on success and 99 on failure
1212
echo ReliabilityFramework successful

0 commit comments

Comments
 (0)