process replay: fix branch name alert (#23783)

* env is modified after start

* update ref
old-commit-hash: 14260c01c6a91554a63377acfce504758af4d096
This commit is contained in:
Willem Melching
2022-02-17 16:47:42 +01:00
committed by GitHub
parent ddde46c503
commit 849bbc8a2f
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -15,7 +15,6 @@ VisualAlert = car.CarControl.HUDControl.VisualAlert
AudibleAlert = car.CarControl.HUDControl.AudibleAlert
EventName = car.CarEvent.EventName
REPLAY = "REPLAY" in os.environ
# Alert priorities
class Priority(IntEnum):
@@ -218,8 +217,9 @@ def user_soft_disable_alert(alert_text_2: str) -> AlertCallbackType:
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:
+1 -1
View File
@@ -1 +1 @@
ff965c772bd1bc85dec717d090cee4466033ce73
302258d8bdfea779c546f76c191ed451b18062f5