Files
openpilot/tinygrad_repo/conftest.py
T
Comma Device 21c4dd2b41 modeld_v2: apply chestnut/eGPU support (#1894) + bump vendored tinygrad + rebuild params lib
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.
2026-08-17 18:36:17 +08:00

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()