diff --git a/src/pester-tests/Test-Environment-Variables.Tests.ps1 b/src/pester-tests/Test-Environment-Variables.Tests.ps1 index 28b58fa74e..8b637dcca2 100644 --- a/src/pester-tests/Test-Environment-Variables.Tests.ps1 +++ b/src/pester-tests/Test-Environment-Variables.Tests.ps1 @@ -4,8 +4,8 @@ } It "Should be able to access the members of the environment variable" { - $test = /usr/bin/whoami - $expected = "/" + $test + $expected = /bin/bash -c "cd ~ && pwd" + (Get-Item ENV:HOME).Value | Should Be $expected (Get-Item ENV:HOSTNAME).Value | Should Not BeNullOrEmpty (Get-Item ENV:PATH).Value | Should Not BeNullOrEmpty