From: Peter Hutterer Date: Mon, 25 Nov 2019 23:53:10 +0000 (+1000) Subject: tools: print stderr/stdout when a option test fails X-Git-Tag: 1.14.901~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=03bc7121ebc8aad96239e18400fbd6c214e2cf7e;p=platform%2Fupstream%2Flibinput.git tools: print stderr/stdout when a option test fails Signed-off-by: Peter Hutterer --- diff --git a/tools/test-tool-option-parsing.py b/tools/test-tool-option-parsing.py index 258c4846..ad0f197d 100755 --- a/tools/test-tool-option-parsing.py +++ b/tools/test-tool-option-parsing.py @@ -64,7 +64,7 @@ class TestLibinputTool(unittest.TestCase): rc, stdout, stderr = self.run_command(args) # if we're running as user, we might fail the command but we should # never get rc 2 (invalid usage) - self.assertIn(rc, [0, 1]) + self.assertIn(rc, [0, 1], msg=(stdout, stderr)) def run_command_unrecognized_option(self, args): rc, stdout, stderr = self.run_command(args)