tools/ratbagctl.test.in: decode ratbagctl output with utf8 for the tests

The macros with their fancy characters need utf8, not ascii

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2017-08-31 13:14:33 +10:00
committed by Benjamin Tissoires
parent bb23f68d53
commit 0dd08dfb84

View File

@@ -53,8 +53,8 @@ class TestRatbagCtl(unittest.TestCase):
(stdout, stderr) = ratbagctl.communicate()
return (ratbagctl.returncode,
stdout.decode('ascii').rstrip('\n'),
stderr.decode('ascii').rstrip('\n'))
stdout.decode('utf-8').rstrip('\n'),
stderr.decode('utf-8').rstrip('\n'))
@classmethod
def run_ratbagctl_fast(cls, params):