test: print command output for dfiltertest failures
authorPeter Wu <peter@lekensteyn.nl>
Thu, 3 Jan 2019 18:28:44 +0000 (19:28 +0100)
committerPeter Wu <peter@lekensteyn.nl>
Thu, 3 Jan 2019 20:59:56 +0000 (20:59 +0000)
The buildbot detects random errors on Windows. Log some more details in
order to understand the problem better.

Change-Id: I903457894985273a63b8907b6784a2897cd93d93
Reviewed-on: https://code.wireshark.org/review/31340
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
test/suite_dfilter/dfiltertest.py

index 52fb5f9d12104a2d7d389ad36c2c7064b31899d5..501e53a58feb54e6116e663ad1f338cd38286505 100644 (file)
@@ -30,7 +30,8 @@ def checkDFilterCount(dfilter_cmd, base_env):
                                          env=base_env)
 
         dfp_count = output.count("\n")
-        msg = "Expected %d, got: %s" % (expected_count, dfp_count)
+        msg = "Expected %d, got: %s\noutput: %r" % \
+            (expected_count, dfp_count, output)
         assert dfp_count == expected_count, msg
     return checkDFilterCount_real