Import Platform module in pester.sh for Travis

This commit is contained in:
Andrew Schwartzmeyer
2016-03-04 15:46:54 -08:00
parent 2fbc07fa72
commit a93e77d6c9
+1 -1
View File
@@ -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