tests: log stderr of paplay command
This commit is contained in:
parent
7def96c248
commit
cc1ac0b859
@ -806,8 +806,11 @@ class TC_00_AppVMMixin(object):
|
|||||||
p = subprocess.Popen(['sudo', '-E', '-u', local_user,
|
p = subprocess.Popen(['sudo', '-E', '-u', local_user,
|
||||||
'parecord', '-d', '0', '--raw', recorded_audio.name],
|
'parecord', '-d', '0', '--raw', recorded_audio.name],
|
||||||
stdout=subprocess.PIPE)
|
stdout=subprocess.PIPE)
|
||||||
self.loop.run_until_complete(
|
try:
|
||||||
self.testvm1.run_for_stdio('paplay --raw audio_in.raw'))
|
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
|
# wait for possible parecord buffering
|
||||||
self.loop.run_until_complete(asyncio.sleep(1))
|
self.loop.run_until_complete(asyncio.sleep(1))
|
||||||
p.terminate()
|
p.terminate()
|
||||||
|
Loading…
Reference in New Issue
Block a user