mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fixed BaseDirectory tests by adding -c instead of positional argument (#4078)
This commit is contained in:
committed by
Jason Shirk
parent
b65bc62934
commit
7491417bf9
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user