HITL: override addopts to disable xdist for hardware tests (#2370)

This commit is contained in:
Adeeb Shihadeh
2026-03-09 19:50:00 -07:00
committed by GitHub
parent c10b82f8ff
commit c9ee50ea9e
2 changed files with 5 additions and 2 deletions

4
Jenkinsfile vendored
View File

@@ -114,7 +114,7 @@ pipeline {
["build", "scons"],
["flash", "cd scripts/ && ./reflash_internal_panda.py"],
["flash jungle", "cd board/jungle && ./flash.py --all"],
["test", "cd tests/hitl && pytest --durations=0 2*.py [5-9]*.py"],
["test", "cd tests/hitl && pytest -o 'addopts=' --durations=0 2*.py [5-9]*.py"],
])
}
}
@@ -126,7 +126,7 @@ pipeline {
["build", "scons"],
["flash", "cd scripts/ && ./reflash_internal_panda.py"],
["flash jungle", "cd board/jungle && ./flash.py --all"],
["test", "cd tests/hitl && pytest --durations=0 2*.py [5-9]*.py"],
["test", "cd tests/hitl && pytest -o 'addopts=' --durations=0 2*.py [5-9]*.py"],
])
}
}

View File

@@ -53,6 +53,9 @@ def pytest_configure(config):
config.addinivalue_line(
"markers", "panda_expect_can_error: mark test to ignore CAN health errors"
)
config.addinivalue_line(
"markers", "timeout: set test timeout in seconds"
)
@pytest.hookimpl(tryfirst=True)
def pytest_collection_modifyitems(items):