Skip to content
Browse files

fab test failsfast by default

  • Loading branch information...
1 parent 6abe6a0 commit 0c37f93d7b3775e4d5d0f10934921cfc9649fbc8 @davedash davedash committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 fabfile.py
View
5 fabfile.py
@@ -21,11 +21,14 @@ def pep8(all=False):
local(cmd, capture=False)
-def test(module=None, pdb=False):
+def test(module=None, pdb=False, failfast=True):
cmd = "python manage.py test"
if module:
cmd += " %s" % module
+ if failfast and failfast != '0':
+ cmd += " -x"
+
cmd += " --noinput --logging-clear-handlers"
if pdb:
cmd += ' --pdb --pdb-failures -s'

0 comments on commit 0c37f93

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