Browse files

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

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent aebd5f9 commit c1a73d80da65694319d803160b5e400e11318213 @freakboy3742 freakboy3742 committed Mar 29, 2007
Showing with 3 additions and 2 deletions.
  1. +1 −1 django/test/
  2. +2 −1 docs/testing.txt
@@ -84,5 +84,5 @@ def run_tests(module_list, verbosity=1, extra_tests=[]):
- return len(result.failures)
+ return len(result.failures) + len(result.errors)
@@ -468,7 +468,8 @@ failed::
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
all the tests have been executed.

0 comments on commit c1a73d8

Please sign in to comment.