Better checking for failed runs

This commit is contained in:
Manuel Ebert 2013-08-28 12:36:00 -07:00
parent 2f8d063b5d
commit 467f73d377
2 changed files with 3 additions and 3 deletions

1
.gitignore vendored
View file

@ -21,4 +21,5 @@ lib64
# Installer logs
pip-log.txt
.DS_Store
.travis-solo

View file

@ -70,12 +70,11 @@ def run(context, command):
@then('we should get an error')
def has_error(context):
assert context.exit_status is not 0
assert context.exit_status != 0, context.exit_status
@then('we should get no error')
def no_error(context):
assert context.exit_status is 0
assert context.failed is False
assert context.exit_status is 0, context.exit_status
@then('the output should be parsable as json')
def check_output_json(context):