mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 01:52:06 +08:00
test models: add env var to filter out models
old-commit-hash: a009723513329921aafa6902ce320c3cc537729b
This commit is contained in:
@@ -57,6 +57,11 @@ class TestCarModelBase(unittest.TestCase):
|
||||
if cls.__name__ == 'TestCarModel' or cls.__name__.endswith('Base'):
|
||||
raise unittest.SkipTest
|
||||
|
||||
if 'FILTER' in os.environ:
|
||||
print(tuple(os.environ.get('FILTER').split(', ')))
|
||||
if not cls.car_model.startswith(tuple(os.environ.get('FILTER').split(','))):
|
||||
raise unittest.SkipTest
|
||||
|
||||
if cls.test_route is None:
|
||||
if cls.car_model in non_tested_cars:
|
||||
print(f"Skipping tests for {cls.car_model}: missing route")
|
||||
|
||||
Reference in New Issue
Block a user