Remove expected_return_value. Resolves #232

This commit is contained in:
Anthony Sottile
2015-11-12 13:50:29 -08:00
parent 3472f2b3ce
commit 67ad0d2d8e
5 changed files with 2 additions and 7 deletions

View File

@@ -24,7 +24,6 @@ MANIFEST_JSON_SCHEMA = {
'language': {'type': 'string'},
'language_version': {'type': 'string', 'default': 'default'},
'files': {'type': 'string'},
'expected_return_value': {'type': 'number', 'default': 0},
'stages': {
'type': 'array',
'default': [],

View File

@@ -87,7 +87,7 @@ def _run_single_hook(hook, repo, args, write, skips=frozenset()):
retcode, stdout, stderr = repo.run_hook(hook, filenames)
if retcode != hook['expected_return_value']:
if retcode:
retcode = 1
print_color = color.RED
pass_fail = 'Failed'