2016-01-22 23:29:30 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
./bin/powershell -c "Invoke-Pester test/powershell/$1 -OutputFile pester-tests.xml -OutputFormat NUnitXml -EnableExit"
|
|
|
|
failed_tests=$?
|
|
|
|
|
2015-12-23 22:12:40 +01:00
|
|
|
# XML files are not executable
|
|
|
|
chmod -x pester-tests.xml
|
2016-01-22 23:29:30 +01:00
|
|
|
|
|
|
|
# Exit with failure if number of failed tests exceeds threshold
|
|
|
|
[ ! $failed_tests -gt 14 ]
|