From 5eeedf6b95b829bc19a36b8fe8513c03a6e78d85 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sun, 21 Jan 2024 16:39:52 -0800 Subject: [PATCH] pytest: cleanup manager procs on teardown (#31101) old-commit-hash: b1f457bdc819a868591749ced9dad3e836876e91 --- conftest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conftest.py b/conftest.py index 6792bd0c3d..d8cbe25b0a 100644 --- a/conftest.py +++ b/conftest.py @@ -3,6 +3,7 @@ import pytest import random from openpilot.common.prefix import OpenpilotPrefix +from openpilot.selfdrive.manager import manager from openpilot.system.hardware import TICI @@ -41,6 +42,8 @@ def openpilot_function_fixture(): os.environ.clear() os.environ.update(starting_env) + # cleanup any started processes + manager.manager_cleanup() # If you use setUpClass, the environment variables won't be cleared properly, # so we need to hook both the function and class pytest fixtures