Enable variable pass between test and metadrive processes (#30961)

pass started between processes
This commit is contained in:
Hoang Bui 2024-01-10 21:13:21 -05:00 committed by GitHub
parent af1b7e5c59
commit 1da08460cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import subprocess
import time
import unittest
from multiprocessing import Queue
from multiprocessing import Queue, Value
from cereal import messaging
from openpilot.common.basedir import BASEDIR
@ -27,6 +27,7 @@ class TestSimBridgeBase(unittest.TestCase):
sm = messaging.SubMaster(['controlsState', 'onroadEvents', 'managerState'])
q = Queue()
bridge = self.create_bridge()
bridge.started = Value('b', False)
p_bridge = bridge.run(q, retries=10)
self.processes.append(p_bridge)