Skip to content

Commit

Permalink
Merge pull request #13 from higanworks/verify_should_be_fail_when_ins…
Browse files Browse the repository at this point in the history
…pec_returns_1

raise ActionFailed when inspec returns other than 0.
  • Loading branch information
chris-rock committed Nov 24, 2015
2 parents f1d699c + 391832a commit 7c52f03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/kitchen/verifier/inspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ def call(state)
runner = ::Inspec::Runner.new(runner_options)
runner.add_tests(tests)
debug("Running specs from: #{tests.inspect}")
runner.run
exit_code = runner.run
raise ActionFailed, "Inspec Runner returns #{exit_code}" unless exit_code == 0
end

private
Expand Down

0 comments on commit 7c52f03

Please sign in to comment.