From 79a05dcceb4d9ddb68eda50fbf8b2c01d453e624 Mon Sep 17 00:00:00 2001 From: Dmitry Fedorov Date: Wed, 24 Jun 2020 14:51:46 +0300 Subject: [PATCH] audio: do not use pacat on copying audio_in.raw --- qubes/tests/integ/vm_qrexec_gui.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qubes/tests/integ/vm_qrexec_gui.py b/qubes/tests/integ/vm_qrexec_gui.py index 4c5c35de..5866db6b 100644 --- a/qubes/tests/integ/vm_qrexec_gui.py +++ b/qubes/tests/integ/vm_qrexec_gui.py @@ -447,9 +447,8 @@ class TC_00_AppVMMixin(object): sfreq = 4400 # generate signal audio_in = np.sin(2*np.pi*np.arange(44100)*sfreq/44100) - self.loop.run_until_complete(self.testvm1.run_for_stdio( - 'pacat --raw --rate=44100 --channels=1 \ - --format=float32le > audio_in.raw', + self.loop.run_until_complete( + self.testvm1.run_for_stdio('cat > audio_in.raw', input=audio_in.astype(np.float32).tobytes())) local_user = grp.getgrnam('qubes').gr_mem[0] with tempfile.NamedTemporaryFile() as recorded_audio: