test_models: don't skip test cases with multiple pytest jobs (#28953)

* Update test_models.py

* Update selfdrive/car/tests/test_models.py

* Update selfdrive/car/tests/test_models.py
old-commit-hash: f6390c6e4092ee69ea73753419b86dd9d8b5cf27
This commit is contained in:
Shane Smiskol
2023-07-14 16:24:07 -07:00
committed by GitHub
parent 718fabb4d5
commit ce88b7cf51
+1 -1
View File
@@ -39,7 +39,7 @@ for r in routes:
test_cases: List[Tuple[str, Optional[CarTestRoute]]] = []
for i, c in enumerate(sorted(all_known_cars())):
if i % NUM_JOBS == JOB_ID:
test_cases.extend((c, r) for r in routes_by_car.get(c, (None, )))
test_cases.extend(sorted((c, r) for r in routes_by_car.get(c, (None, ))))
SKIP_ENV_VAR = "SKIP_LONG_TESTS"