tools: print stderr/stdout when a option test fails

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2019-11-26 09:53:10 +10:00
parent 5dc1a7ebd3
commit 03bc7121eb

View file

@ -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)