From 7491417bf9ada6678020b503723889e7bd7db6f9 Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Thu, 22 Jun 2017 13:35:04 -0700 Subject: [PATCH] Fixed BaseDirectory tests by adding -c instead of positional argument (#4078) --- test/powershell/Host/Base-Directory.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/powershell/Host/Base-Directory.Tests.ps1 b/test/powershell/Host/Base-Directory.Tests.ps1 index c2cf4d1585..eb4f3f4e97 100644 --- a/test/powershell/Host/Base-Directory.Tests.ps1 +++ b/test/powershell/Host/Base-Directory.Tests.ps1 @@ -88,14 +88,14 @@ Describe "Configuration file locations" -tags "CI","Slow" { It @ItArgs "Profile should respect XDG_CONFIG_HOME" { $env:XDG_CONFIG_HOME = $TestDrive $expected = [IO.Path]::Combine($TestDrive, "powershell", $profileName) - & $powershell -noprofile `$PROFILE | Should Be $expected + & $powershell -noprofile -c `$PROFILE | Should Be $expected } It @ItArgs "PSModulePath should respect XDG_DATA_HOME" { $env:PSModulePath = "" $env:XDG_DATA_HOME = $TestDrive $expected = [IO.Path]::Combine($TestDrive, "powershell", "Modules") - $actual = & $powershell -noprofile `$env:PSModulePath + $actual = & $powershell -noprofile -c `$env:PSModulePath $actual | Should Match $expected }