Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In #4 we attempted to add an error message when a test fails prior to reporting its final status (like in case of a segfault). However, that PR didn't work as intended because the condition to check if there were any tests inprogress was incorrect. It relied on the count_tests() function in subunit_trace which was returning zero as it was called there even when tests were left in the inprogress state. However, this call wasn't actually needed because we call get_stuck_in_progress() right before the condition which collects any test ids from the subunit stream that are left inprogress. This commit fixes the issue by just checking that the output list from get_stuck_in_progress() has entries. Then to ensure this doesn't regress in the future the unittest added in PR #304 is updated to actually assert we write out the error message as expected. Previously it only checked the return code was a failure (which it was even before #304) which is what let this issue slip in.
- Loading branch information