From ed5cf1fd8c887deb49f4665686d2f2acf179d55c Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 6 Jul 2020 19:43:42 -0700 Subject: [PATCH] show current sound name during sound test old-commit-hash: fd504aa3f2067d403ca917efdf860b3b315bfd66 --- selfdrive/test/test_sounds.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/selfdrive/test/test_sounds.py b/selfdrive/test/test_sounds.py index e7aedf4da7..e9946efb0f 100755 --- a/selfdrive/test/test_sounds.py +++ b/selfdrive/test/test_sounds.py @@ -2,7 +2,7 @@ import time import subprocess -from cereal import car +from cereal import log, car import cereal.messaging as messaging from selfdrive.test.helpers import phone_only, with_processes from common.android import get_sound_card_online @@ -61,6 +61,9 @@ def test_alert_sounds(): msg.controlsState.active = True msg.controlsState.alertSound = sound msg.controlsState.alertType = str(sound) + msg.controlsState.alertText1 = "Testing Sounds" + msg.controlsState.alertText2 = f"playing {alert_sounds[sound]}" + msg.controlsState.alertSize = log.ControlsState.AlertSize.mid pm.send('controlsState', msg) time.sleep(DT_CTRL)