Skip to content
Browse files

Updated return codes from jshint

jshint return codes changed after version 1.0, more information here:

jshint/jshint#916 (comment)
  • Loading branch information...
1 parent 3baa91b commit 5e71cc91c3dfc5d00755a5d7858cfe5b882f4763 @camilonova camilonova committed Mar 12, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 django_jenkins/tasks/run_jshint.py
View
2 django_jenkins/tasks/run_jshint.py
@@ -53,7 +53,7 @@ def teardown_test_environment(self, **kwargs):
process = subprocess.Popen(cmd, stdout=subprocess.PIPE)
output, err = process.communicate()
retcode = process.poll()
- if retcode not in [0, 1]: # normal csslint return codes
+ if retcode not in [0, 2]: # normal jshint return codes
raise CalledProcessError(retcode, cmd, output=output + '\n' + err)
self.output.write(output.decode('utf-8'))

0 comments on commit 5e71cc9

Please sign in to comment.
Something went wrong with that request. Please try again.