mirror of
https://jihulab.com/mr-one/openpilot.git
synced 2026-10-27 21:13:42 +08:00
21c4dd2b41
Applied upstream commit 94a32493e (modeld_v2 chestnut support). Skipped CI workflow files (deleted in this fork). Replaced vendored tinygrad_repo with submodule commit 66ee3cfb4. Rebuilt libparams_c.so for new ModelManager/USBGPU params.
11 lines
268 B
Python
11 lines
268 B
Python
import os, pytest, signal, threading
|
|
|
|
@pytest.hookimpl(wrapper=True)
|
|
def pytest_runtest_call(item):
|
|
t = threading.Timer(int(os.getenv("TEST_TIMEOUT", 300)), os.kill, args=(os.getpid(), signal.SIGABRT))
|
|
t.start()
|
|
try: yield
|
|
finally:
|
|
t.cancel()
|
|
t.join()
|