chef-partners / azuredevops-chef

MIT License
9 stars 3 forks source link

Correctly error build on InSpec error code #52

Closed russellseymour closed 4 years ago

russellseymour commented 4 years ago

InSpec emits several different error codes:

0 - run was completely successful 100 - run was successful but some tests failed 101 - run was successful but some tests were skipped

This change modifies the task so that 100 causes the task to fail rather than just warn. 101 will still warn.