diff tests/run-tests.py @ 42505:c1850798f995 stable

run-tests: stop matching line for missing feature Before this change, the following unified test input would silently pass $ echo foo foo (false !) After this change, the "foo" output is properly detected as unexpected. The output of an handful of test had to be updated from broken conditional (that ended up working by chance).
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 19 Jun 2019 05:37:33 +0200
parents 4cbccb50df46
children 84aff7e20c55
line wrap: on
line diff
--- a/tests/run-tests.py	Sun Jun 16 12:31:07 2019 +0900
+++ b/tests/run-tests.py	Wed Jun 19 05:37:33 2019 +0200
@@ -1748,7 +1748,8 @@
 
                 el = m.group(1) + b"\n"
                 if not self._iftest(conditions):
-                    retry = "retry"    # Not required by listed features
+                    # listed feature missing, should not match
+                    return "retry", False
 
         if el.endswith(b" (esc)\n"):
             if PYTHON3: