[patch] runtests.py should exit with nonzero status for failure or error
I propose to change the testing system so that for failures, runtests.py or manage.py test return with status code 1 in case of failures. This makes it easier to use the test system automatically.
The attached patch makes django.test.simple.run_tests return the number of failures and uses this return value in runtests.py and manage.py test.
Since I use the test system only for django itself, I didn't check whether it actually works for manage.py test.
Change History
(9)
Type: |
defect → enhancement
|
Triage Stage: |
Unreviewed → Design decision needed
|
Triage Stage: |
Design decision needed → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Resolution: |
fixed
|
Status: |
closed → reopened
|
Summary: |
[patch] runtests.py should exit with nonzero status for failures → [patch] runtests.py should exit with nonzero status for failure or error
|
Resolution: |
→ fixed
|
Status: |
reopened → closed
|
the patch