cd81479b87
Set to 14 because of non-tty and random process failures.
10 lines
306 B
Bash
Executable file
10 lines
306 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
./bin/powershell -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 14 ]
|