[patch] runtests.py should exit with nonzero status for failure or error
|Reported by:||Owned by:||Adrian Holovaty|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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)
comment:6 Changed 10 years ago by
|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|