From 614e62d775799a9af1e76ab9025dc96bbe1b83c6 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Thu, 19 Sep 2024 15:40:36 -0700 Subject: [PATCH] export and fix platforms --- selfdrive/car/tests/big_cars_test.sh | 8 ++++---- selfdrive/car/tests/test_models.py | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/selfdrive/car/tests/big_cars_test.sh b/selfdrive/car/tests/big_cars_test.sh index 8b0e96d980..863b8bead0 100755 --- a/selfdrive/car/tests/big_cars_test.sh +++ b/selfdrive/car/tests/big_cars_test.sh @@ -4,9 +4,9 @@ SCRIPT_DIR=$(dirname "$0") BASEDIR=$(realpath "$SCRIPT_DIR/../../../") cd $BASEDIR -MAX_EXAMPLES=300 -INTERNAL_SEG_CNT=300 -FILEREADER_CACHE=1 -INTERNAL_SEG_LIST=selfdrive/car/tests/test_models_segs.txt +export MAX_EXAMPLES=300 +export INTERNAL_SEG_CNT=300 +export FILEREADER_CACHE=1 +export INTERNAL_SEG_LIST=selfdrive/car/tests/test_models_segs.txt cd selfdrive/car/tests && pytest test_models.py test_car_interfaces.py diff --git a/selfdrive/car/tests/test_models.py b/selfdrive/car/tests/test_models.py index 0548f52764..460b9f196d 100644 --- a/selfdrive/car/tests/test_models.py +++ b/selfdrive/car/tests/test_models.py @@ -57,6 +57,7 @@ def get_test_cases() -> list[tuple[str, CarTestRoute | None]]: segment_list = read_segment_list(os.path.join(BASEDIR, INTERNAL_SEG_LIST)) segment_list = random.sample(segment_list, INTERNAL_SEG_CNT or len(segment_list)) for platform, segment in segment_list: + platform = MIGRATION.get(platform, platform) segment_name = SegmentName(segment) test_cases.append((platform, CarTestRoute(segment_name.route_name.canonical_name, platform, segment=segment_name.segment_num)))