diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2007-02-26 12:52:01 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2007-02-26 12:52:01 +0000 |
| commit | f313e07b6e0914130b613c3491b2b019ca003dc7 (patch) | |
| tree | 43f5d09e7637dc5f88c185a80dc057368caa4b52 /tests | |
| parent | c27ba0b2097267796bc97daea81ee62dd10554ff (diff) | |
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
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/runtests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/runtests.py b/tests/runtests.py index 1c15f18510..b21a3536ac 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -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 |
