From 302258d8bdfea779c546f76c191ed451b18062f5 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Thu, 17 Feb 2022 15:50:34 +0100 Subject: [PATCH 1/2] env is modified after start --- selfdrive/controls/lib/events.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/controls/lib/events.py b/selfdrive/controls/lib/events.py index 0b6537d1e7c73a..931932cc0df0f7 100644 --- a/selfdrive/controls/lib/events.py +++ b/selfdrive/controls/lib/events.py @@ -15,7 +15,6 @@ AudibleAlert = car.CarControl.HUDControl.AudibleAlert EventName = car.CarEvent.EventName -REPLAY = "REPLAY" in os.environ # Alert priorities class Priority(IntEnum): @@ -218,8 +217,9 @@ def func(CP: car.CarParams, sm: messaging.SubMaster, metric: bool, soft_disable_ def startup_master_alert(CP: car.CarParams, sm: messaging.SubMaster, metric: bool, soft_disable_time: int) -> Alert: branch = get_short_branch("") - if REPLAY: + if "REPLAY" in os.environ: branch = "replay" + return StartupAlert("WARNING: This branch is not tested", branch, alert_status=AlertStatus.userPrompt) def below_engage_speed_alert(CP: car.CarParams, sm: messaging.SubMaster, metric: bool, soft_disable_time: int) -> Alert: From 0a85cc0125e1f552ed6f1cc0d10bc736116d769b Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Thu, 17 Feb 2022 16:02:46 +0100 Subject: [PATCH 2/2] update ref --- selfdrive/test/process_replay/ref_commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/test/process_replay/ref_commit b/selfdrive/test/process_replay/ref_commit index 57c51c1f1ae463..6c915d8f8f487c 100644 --- a/selfdrive/test/process_replay/ref_commit +++ b/selfdrive/test/process_replay/ref_commit @@ -1 +1 @@ -ff965c772bd1bc85dec717d090cee4466033ce73 \ No newline at end of file +302258d8bdfea779c546f76c191ed451b18062f5 \ No newline at end of file