]> granicus.if.org Git - graphviz/commitdiff
Print output when test_tools fails
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 25 May 2021 19:57:17 +0000 (21:57 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 30 May 2021 15:23:19 +0000 (17:23 +0200)
rtest/test_tools.py

index 1ef4fa0954e926c83a2a78070a2e890a32f11ea0..c25a2360c3a38def1e813808ee30fc3fa4710df4 100644 (file)
@@ -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(