From cc1ac0b859cdf757ece23c18167622bae57a24c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 29 Sep 2019 06:06:10 +0200 Subject: [PATCH] tests: log stderr of paplay command --- qubes/tests/integ/vm_qrexec_gui.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qubes/tests/integ/vm_qrexec_gui.py b/qubes/tests/integ/vm_qrexec_gui.py index 98211cad..15a2a031 100644 --- a/qubes/tests/integ/vm_qrexec_gui.py +++ b/qubes/tests/integ/vm_qrexec_gui.py @@ -806,8 +806,11 @@ class TC_00_AppVMMixin(object): p = subprocess.Popen(['sudo', '-E', '-u', local_user, 'parecord', '-d', '0', '--raw', recorded_audio.name], stdout=subprocess.PIPE) - self.loop.run_until_complete( - self.testvm1.run_for_stdio('paplay --raw audio_in.raw')) + try: + self.loop.run_until_complete( + self.testvm1.run_for_stdio('paplay --raw audio_in.raw')) + except subprocess.CalledProcessError as err: + self.fail('{} stderr: {}'.format(str(err), err.stderr)) # wait for possible parecord buffering self.loop.run_until_complete(asyncio.sleep(1)) p.terminate()