From be79267f9df8331d0582bf47ce4188323919160e Mon Sep 17 00:00:00 2001 From: Yaroslav Chvanov Date: Thu, 22 Dec 2022 02:17:45 +0300 Subject: [PATCH] test: work-around unsupported Driver section of the `sinowealth` driver --- test/data-parse-test.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/data-parse-test.py b/test/data-parse-test.py index b256e01b..5728df1a 100755 --- a/test/data-parse-test.py +++ b/test/data-parse-test.py @@ -223,8 +223,12 @@ def parse_data_file(path: str): driver_section = 'Driver/{}'.format(driver) permitted_sections = ['Device', driver_section] - for s in data.sections(): - assertIn(s, permitted_sections) + # FIXME: remove this once `sinowealth` driver has a better way of defining data. + if driver == "sinowealth": + print("Skipping `Driver` section check for a `sinowealth` device") + else: + for s in data.sections(): + assertIn(s, permitted_sections) if data.has_section(driver_section): check_section_driver(driver, data[driver_section])