From a93e77d6c97b5ab5474938d67eeae62fa7911d27 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Fri, 4 Mar 2016 15:46:54 -0800 Subject: [PATCH] Import Platform module in pester.sh for Travis --- pester.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pester.sh b/pester.sh index a18c60497f..400b3c79a5 100755 --- a/pester.sh +++ b/pester.sh @@ -2,7 +2,7 @@ test -x bin/powershell || { echo >&2 "No bin/powershell, please run './build.sh'"; exit 1; } -./bin/powershell --noprofile -c "Invoke-Pester test/powershell/$1 -OutputFile pester-tests.xml -OutputFormat NUnitXml -EnableExit" +./bin/powershell --noprofile -c "Import-Module Microsoft.PowerShell.Platform; Invoke-Pester test/powershell/$1 -OutputFile pester-tests.xml -OutputFormat NUnitXml -EnableExit" failed_tests=$? # XML files are not executable