﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
11615	./manage.py test returns incorrect status code if more than 255 bugs fail	Chris Lamb	Gary Wilson	"The Django test runner currently calls ""sys.exit(number_of_failed_tests)"" when finished. However, as exit codes under UNIX (etc.) systems are unsigned chars, if n % 256 == 0 bugs fail (where n > 0) the exit code for the program is 0 - ie. incorrectly denoting a ""successful"" build run.

A more general problem exists where, if n > 256 bugs fail, the exit code is actually modulus 256 the number of failed tests.

A patch is attached which normalises the values to either 0 and 1 on success and failure respectfully - we cannot return the number in this manner, so let's not pretend to."		closed	Testing framework			fixed			Ready for checkin	1	0	0	0	0	0
