You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2022/01/25 10:58:39 UTC

svn commit: r1897449 - /subversion/trunk/build/run_tests.py

Author: danielsh
Date: Tue Jan 25 10:58:39 2022
New Revision: 1897449

URL: http://svn.apache.org/viewvc?rev=1897449&view=rev
Log:
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.

Modified:
    subversion/trunk/build/run_tests.py

Modified: subversion/trunk/build/run_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/build/run_tests.py?rev=1897449&r1=1897448&r2=1897449&view=diff
==============================================================================
--- subversion/trunk/build/run_tests.py (original)
+++ subversion/trunk/build/run_tests.py Tue Jan 25 10:58:39 2022
@@ -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.'