PowerShell/pester.sh
Andrew Schwartzmeyer 3e1cdb7582 Decrease failed test threshold to 11
The updated packages fix our Start/Stop process tests, which were
failing intermittently due to the process name appearing incorrect.

See dotnet/corefx#5421 for further details.
2016-02-02 15:43:54 -08:00

11 lines
318 B
Bash
Executable file

#!/usr/bin/env bash
./bin/powershell --noprofile -c "Invoke-Pester test/powershell/$1 -OutputFile pester-tests.xml -OutputFormat NUnitXml -EnableExit"
failed_tests=$?
# XML files are not executable
chmod -x pester-tests.xml
# Exit with failure if number of failed tests exceeds threshold
[ ! $failed_tests -gt 11 ]