Skip to content

Commit

Permalink
fab test failsfast by default
Browse files Browse the repository at this point in the history
  • Loading branch information
davedash committed Mar 9, 2010
1 parent 6abe6a0 commit 0c37f93
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fabfile.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@ def pep8(all=False):
local(cmd, capture=False) local(cmd, capture=False)




def test(module=None, pdb=False): def test(module=None, pdb=False, failfast=True):
cmd = "python manage.py test" cmd = "python manage.py test"
if module: if module:
cmd += " %s" % module cmd += " %s" % module


if failfast and failfast != '0':
cmd += " -x"

cmd += " --noinput --logging-clear-handlers" cmd += " --noinput --logging-clear-handlers"
if pdb: if pdb:
cmd += ' --pdb --pdb-failures -s' cmd += ' --pdb --pdb-failures -s'
Expand Down

0 comments on commit 0c37f93

Please sign in to comment.