Fixed #3253 -- Included test errors in the return code.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4850 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2007-03-29 11:59:31 +00:00
parent aebd5f94a2
commit c1a73d80da
2 changed files with 3 additions and 2 deletions

View File

@ -84,5 +84,5 @@ def run_tests(module_list, verbosity=1, extra_tests=[]):
teardown_test_environment() teardown_test_environment()
return len(result.failures) return len(result.failures) + len(result.errors)

View File

@ -468,7 +468,8 @@ failed::
FAILED (failures=1) FAILED (failures=1)
The return code for the script will indicate the number of tests that failed. The return code for the script is the total number of failed and erroneous
tests. If all the tests pass, the return code is 0.
Regardless of whether the tests pass or fail, the test database is destroyed when Regardless of whether the tests pass or fail, the test database is destroyed when
all the tests have been executed. all the tests have been executed.