mirror of
https://github.com/django/django.git
synced 2025-11-01 04:17:59 +00:00
Fixed #3253 -- Exposed the number of failed tests as a return code in manage.py and runtests.py.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4608 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
c27ba0b209
commit
f313e07b6e
4 changed files with 22 additions and 6 deletions
|
|
@ -124,7 +124,9 @@ def django_tests(verbosity, tests_to_run):
|
|||
|
||||
# Run the test suite, including the extra validation tests.
|
||||
from django.test.simple import run_tests
|
||||
run_tests(test_models, verbosity, extra_tests=extra_tests)
|
||||
failures = run_tests(test_models, verbosity, extra_tests=extra_tests)
|
||||
if failures:
|
||||
sys.exit(failures)
|
||||
|
||||
# Restore the old settings.
|
||||
settings.INSTALLED_APPS = old_installed_apps
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue