From f313e07b6e0914130b613c3491b2b019ca003dc7 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Mon, 26 Feb 2007 12:52:01 +0000 Subject: 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 --- tests/runtests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') 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 -- cgit v1.3