Number of test failures is calculated incorrectly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Testrepository |
New
|
Undecided
|
Unassigned |
Bug Description
Consider the following test suite:
import unittest
class Test(unittest.
def test_case1(self):
def test_case2(self):
def test_case3(self):
def test_case4(self):
def test_case5(self):
.testr.conf:
[DEFAULT]
test_command=python -m subunit.run discover . $LISTOPT $IDOPTION
test_id_
test_list_
Running of "testr run" shows 4 failures instead of 3.
Running of "testr run --parallel" (with 4 CPU cores) shows either 5 or 6 failures instead of 3.
Running of "testr run --parallel --concurrency 1" shows 4 failures instead of 3.
Running of "testr run --parallel --concurrency 2" shows 5 failures instead of 3.
...
It seems, that the number of failures reported is equal to the actual number of test failures + the number of testr subprocesses running at least one failing test case.