2016-01-22 23:29:30 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2016-02-01 22:10:39 +01:00
|
|
|
./bin/powershell --noprofile -c "Invoke-Pester test/powershell/$1 -OutputFile pester-tests.xml -OutputFormat NUnitXml -EnableExit"
|
2016-01-22 23:29:30 +01:00
|
|
|
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
|
|
|
|
2016-02-03 23:13:38 +01:00
|
|
|
# Return number of failed tests as exit code (more than 0 will be an error)
|
|
|
|
exit $failed_tests
|