From 37959207502c366d783972243a0d02f6ba0a91df Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Tue, 3 Nov 2020 18:44:35 -0800 Subject: [PATCH] update process replay test routes (#2482) * update bosch route * update rfs * bump refs --- selfdrive/test/process_replay/process_replay.py | 14 ++++++++++++++ selfdrive/test/process_replay/ref_commit | 2 +- selfdrive/test/process_replay/test_processes.py | 5 ++--- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/selfdrive/test/process_replay/process_replay.py b/selfdrive/test/process_replay/process_replay.py index 3596096a2b..3b81cc8896 100755 --- a/selfdrive/test/process_replay/process_replay.py +++ b/selfdrive/test/process_replay/process_replay.py @@ -74,6 +74,11 @@ class DumbSocket: except capnp.lib.capnp.KjException: # pylint: disable=c-extension-no-member # lists dat = messaging.new_message(s, 0) + + # TODO: remove this after deprecated all hw without a relay + if s == "health": + dat.health.hwType = log.HealthData.HwType.uno + self.data = dat.to_bytes() def receive(self, non_blocking=False): @@ -336,6 +341,15 @@ def python_replay_process(cfg, lr): params.put("CommunityFeaturesToggle", "1") os.environ['NO_RADAR_SLEEP'] = "1" + os.environ['SKIP_FW_QUERY'] = "1" + os.environ['FINGERPRINT'] = "" + for msg in lr: + if msg.which() == 'carParams': + # TODO: get a stock VW route + if "Generic Volkswagen" not in msg.carParams.carFingerprint: + os.environ['FINGERPRINT'] = msg.carParams.carFingerprint + break + manager.prepare_managed_process(cfg.proc_name) mod = importlib.import_module(manager.managed_processes[cfg.proc_name]) thread = threading.Thread(target=mod.main, args=args) diff --git a/selfdrive/test/process_replay/ref_commit b/selfdrive/test/process_replay/ref_commit index 40a5b6e2af..9f8f6c05ea 100644 --- a/selfdrive/test/process_replay/ref_commit +++ b/selfdrive/test/process_replay/ref_commit @@ -1 +1 @@ -955869126912fa93325ff5ef9cd94310378e3082 \ No newline at end of file +f863303a303348b27d624a1e301857ec0b432e17 \ No newline at end of file diff --git a/selfdrive/test/process_replay/test_processes.py b/selfdrive/test/process_replay/test_processes.py index 137a24f591..ac0fdae858 100755 --- a/selfdrive/test/process_replay/test_processes.py +++ b/selfdrive/test/process_replay/test_processes.py @@ -12,15 +12,14 @@ from tools.lib.logreader import LogReader INJECT_MODEL = 0 segments = [ - ("HONDA", "0375fdf7b1ce594d|2019-06-13--08-32-25--3"), # HONDA.ACCORD - ("HONDA", "99c94dc769b5d96e|2019-08-03--14-19-59--2"), # HONDA.CIVIC + ("HONDA", "d83f36766f8012a5|2020-02-05--18-42-21--2"), # HONDA.CIVIC_BOSCH_DIESEL (BOSCH) + ("HONDA", "99c94dc769b5d96e|2019-08-03--14-19-59--2"), # HONDA.CIVIC (NIDEC) ("TOYOTA", "77611a1fac303767|2020-02-29--13-29-33--3"), # TOYOTA.COROLLA_TSS2 ("TOYOTA", "b14c5b4742e6fc85|2020-10-14--11-04-47--4"), # TOYOTA.RAV4 (LQR) ("TOYOTA", "0982d79ebb0de295|2020-10-18--19-11-36--5"), # TOYOTA.PRIUS (INDI) ("GM", "7cc2a8365b4dd8a9|2018-12-02--12-10-44--2"), # GM.ACADIA ("CHRYSLER", "b6849f5cf2c926b1|2020-02-28--07-29-48--13"), # CHRYSLER.PACIFICA ("HYUNDAI", "5b7c365c50084530|2020-04-15--16-13-24--3"), # HYUNDAI.SONATA - #("CHRYSLER", "b6e1317e1bfbefa6|2020-03-04--13-11-40"), # CHRYSLER.JEEP_CHEROKEE ("SUBARU", "7873afaf022d36e2|2019-07-03--18-46-44--0"), # SUBARU.IMPREZA ("VOLKSWAGEN", "76b83eb0245de90e|2020-03-05--19-16-05--3"), # VW.GOLF ("NISSAN", "fbbfa6af821552b9|2020-03-03--08-09-43--0"), # NISSAN.XTRAIL