mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
tools: assume good tests won't write to stderr
GObject silently catches exceptions and logs it to stderr without ever passing on the exceptions. Avoid oversight by checking stderr in the tests. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -110,6 +110,8 @@ class TestRatbagCtl(unittest.TestCase):
|
||||
def launch_good_test(self, params):
|
||||
returncode, stdout, stderr = self.run_ratbagctl(params)
|
||||
self.assertEqual(returncode, 0, msg=stderr + stdout)
|
||||
self.maxDiff = None
|
||||
self.assertEqual(stderr, '')
|
||||
return stdout
|
||||
|
||||
def launch_fail_test(self, params):
|
||||
|
||||
Reference in New Issue
Block a user