From 97c4bbe952144ab4fa50efb0d01788443fb0a8ba Mon Sep 17 00:00:00 2001 From: James Truher Date: Mon, 12 Sep 2016 12:59:12 -0700 Subject: [PATCH] don't use git to determine where the common directory is it's not portable for our lab environment, where git may not exist --- .../Modules/Microsoft.PowerShell.Core/Out-Host.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Core/Out-Host.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Core/Out-Host.Tests.ps1 index eb4e1622b..fd54bf879 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Core/Out-Host.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Core/Out-Host.Tests.ps1 @@ -1,8 +1,8 @@ if ( ! (get-module -ea silentlycontinue TestHostCS )) { - $root = git rev-parse --show-toplevel - $pestertestroot = join-path $root test/powershell + # this is sensitive to the location of this test and the common directory" + $pestertestroot = resolve-path "$psscriptroot/../.." $common = join-path $pestertestroot Common $hostmodule = join-path $common TestHostCS.psm1 import-module $hostmodule