macos: use /tmp instead of /dev/shm (#34097)

* No /dev/shm on MacOS so we go to tmp instead given that the /dev/shm makes tests not really work fine on mac

* Cleanups

Fix cereal messaging tests

* keep msgq stock

More shm updates for macos

* typo

* fix return

* Semicolon...
This commit is contained in:
DevTekVE
2024-12-04 19:51:09 +01:00
committed by GitHub
parent 75bf756893
commit 8f7bbe4ee3
9 changed files with 27 additions and 11 deletions
+2 -1
View File
@@ -16,8 +16,9 @@ import openpilot.system.sentry as sentry
from openpilot.common.basedir import BASEDIR
from openpilot.common.params import Params
from openpilot.common.swaglog import cloudlog
from openpilot.system.hardware.hw import Paths
WATCHDOG_FN = "/dev/shm/wd_"
WATCHDOG_FN = f"{Paths.shm_path()}/wd_"
ENABLE_WATCHDOG = os.getenv("NO_WATCHDOG") is None