Commit 4bcb9ca8 authored by Stefan Behnel's avatar Stefan Behnel

Make end-to-end tests fail on refnanny output.

parent ee8c3ac4
...@@ -1747,6 +1747,8 @@ class EndToEndTest(unittest.TestCase): ...@@ -1747,6 +1747,8 @@ class EndToEndTest(unittest.TestCase):
out.append(_out) out.append(_out)
err.append(_err) err.append(_err)
res = p.returncode res = p.returncode
if res == 0 and b'REFNANNY: ' in _out:
res = -1
if res != 0: if res != 0:
for c, o, e in zip(cmd, out, err): for c, o, e in zip(cmd, out, err):
sys.stderr.write("%s\n%s\n%s\n\n" % ( sys.stderr.write("%s\n%s\n%s\n\n" % (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment