From f6390c6e4092ee69ea73753419b86dd9d8b5cf27 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Fri, 14 Jul 2023 16:24:07 -0700 Subject: [PATCH] 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 --- selfdrive/car/tests/test_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/car/tests/test_models.py b/selfdrive/car/tests/test_models.py index 2ae33f2832..0a9f86b556 100755 --- a/selfdrive/car/tests/test_models.py +++ b/selfdrive/car/tests/test_models.py @@ -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"