From d8d4684c24a7c34334bb0b1d74dead69282e8c46 Mon Sep 17 00:00:00 2001 From: Josep Maso Date: Wed, 30 Sep 2020 10:32:16 +0200 Subject: Modified audio test to work in IGEP0046. --- test-cli/test/tests/qaudio.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test-cli/test/tests/qaudio.py b/test-cli/test/tests/qaudio.py index 2c86809..a219a1a 100644 --- a/test-cli/test/tests/qaudio.py +++ b/test-cli/test/tests/qaudio.py @@ -50,6 +50,11 @@ class Qaudio(unittest.TestCase): time.sleep(self.__run_delay) p1 = sh.aplay(self.__dtmf_file_play) p2.wait() + + p2 = sh.arecord("-r", self.__sampling_rate, "-d", calcRecordTime, "{}/{}".format(self.__record_path, self.__dtmf_file_record), _bg=True) + time.sleep(self.__run_delay) + p1 = sh.aplay(self.__dtmf_file_play) + p2.wait() if p1.exit_code == 0 and p2.exit_code == 0: p = sh.multimon("-t", "wav", "-a", "DTMF", "{}/{}".format(self.__record_path, self.__dtmf_file_record), "-q") if p.exit_code == 0: -- cgit v1.1