From: Magnus Jacobsson Date: Tue, 25 May 2021 19:57:17 +0000 (+0200) Subject: Print output when test_tools fails X-Git-Tag: 2.47.3~21^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b258191b2d9fc892b22d7a1159f5f1c70c15f2a;p=graphviz Print output when test_tools fails --- diff --git a/rtest/test_tools.py b/rtest/test_tools.py index 1ef4fa095..c25a2360c 100644 --- a/rtest/test_tools.py +++ b/rtest/test_tools.py @@ -100,10 +100,10 @@ def test_tools(tool): assert has_pass, "could not find passing execution" assert has_fail, "could not find failing execution (#1934 fixed?)" - assert ret == 0, f"`{tool} -?` failed" + assert ret == 0, f"`{tool} -?` failed. Output was: {output}" assert re.match("usage", output, flags=re.IGNORECASE) is not None, \ - f"{tool} -? did not show usage" + f"{tool} -? did not show usage. Output was: {output}" # Test unsupported option returncode = subprocess.call(