From a0ba3b6b8fe93d9e3f95641255cd4581e7b4ace6 Mon Sep 17 00:00:00 2001 From: Zachary Folwick Date: Mon, 24 Aug 2015 13:39:24 -0700 Subject: [PATCH] modified to work under jenkins --- src/pester-tests/Test-Environment-Variables.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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