From ac81467c5c2c7ca0f340ee8d2aff81e330eb803a Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Thu, 16 May 2024 21:11:55 -0700 Subject: [PATCH] process replay: check missing services (#32452) * add check to check * don't forget to raise * skip this segment --- selfdrive/test/process_replay/test_processes.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/selfdrive/test/process_replay/test_processes.py b/selfdrive/test/process_replay/test_processes.py index 5fa80f0e095f33..7a482c1bdc8566 100755 --- a/selfdrive/test/process_replay/test_processes.py +++ b/selfdrive/test/process_replay/test_processes.py @@ -111,6 +111,12 @@ def test_process(cfg, lr, segment, ref_log_path, new_log_path, ignore_fields=Non if segment not in ("regen6CA24BC3035|2023-10-30--23-14-28--0", "regen7D2D3F82D5B|2023-10-30--23-15-55--0"): return f"Route did not enable at all or for long enough: {new_log_path}", log_msgs + if cfg.proc_name != 'ubloxd' or segment != 'regen6CA24BC3035|2023-10-30--23-14-28--0': + seen_msgs = {m.which() for m in log_msgs} + expected_msgs = set(cfg.subs) + if seen_msgs != expected_msgs: + return f"Expected messages: {expected_msgs}, but got: {seen_msgs}", log_msgs + try: return compare_logs(ref_log_msgs, log_msgs, ignore_fields + cfg.ignore, ignore_msgs, cfg.tolerance), log_msgs except Exception as e: