tests: Include additional information in an error message.
I saw this error today with task-test 4 in a threaded svnserveautocheck run,
but the exit code wasn't logged, I had little information to go on (and the
error didn't reproduce).
* build/run_tests.py
(TestHarness._check_for_unknown_failure): Log the exit code.
@@ -798,10 +798,12 @@ class TestHarness:
# ### Even if failure==1 it could be that the test didn't run at all.
if test_failed and test_failed != 1:
if self.log:
- log.write('FAIL: %s: Unknown test failure; see tests.log.\n' % progbase)
+ log.write('FAIL: %s: Unknown test failure (%s); see tests.log.\n'
+ % (progbase, test_failed))
log.flush()
else:
- log.write('FAIL: %s: Unknown test failure.\n' % progbase)
+ log.write('FAIL: %s: Unknown test failure (%s).\n'
+ % (progbase, test_failed))
def _run_c_test(self, progabs, progdir, progbase, test_nums, dot_count):
'Run a c test, escaping parameters as required.'
