From ad210f757967bf30b101f34b623fcc3f563abb40 Mon Sep 17 00:00:00 2001 From: Lukasz Mrugala Date: Fri, 26 Apr 2024 12:43:36 +0000 Subject: [PATCH] scripts: twister: Remove harness repeat field Removed Harness's repeat field. Added to schemas in e722db14ad27186814fbd2cc82a3b0ec51159d2f, together with the rest of harness_config. Added to Harness when it was created. Now present only in one sample - mec15xxevb_assy6853 power management sample. Could not find definitive proof whether it has ever been used. Signed-off-by: Lukasz Mrugala --- doc/develop/test/twister.rst | 3 --- .../boards/mec15xxevb_assy6853/power_management/sample.yaml | 1 - scripts/pylib/twister/twisterlib/harness.py | 2 -- scripts/schemas/twister/testsuite-schema.yaml | 3 --- 4 files changed, 9 deletions(-) diff --git a/doc/develop/test/twister.rst b/doc/develop/test/twister.rst index 35f2c087ec..4f0169ecec 100644 --- a/doc/develop/test/twister.rst +++ b/doc/develop/test/twister.rst @@ -499,9 +499,6 @@ harness_config: ordered: (default False) Check the regular expression strings in orderly or randomly fashion - repeat: - Number of times to validate the repeated regex expression - record: (optional) regex: (required) The regular expression with named subgroups to match data fields diff --git a/samples/boards/mec15xxevb_assy6853/power_management/sample.yaml b/samples/boards/mec15xxevb_assy6853/power_management/sample.yaml index 578477ba68..b03b441e17 100644 --- a/samples/boards/mec15xxevb_assy6853/power_management/sample.yaml +++ b/samples/boards/mec15xxevb_assy6853/power_management/sample.yaml @@ -13,4 +13,3 @@ tests: regex: - "Wake from Light Sleep" - "Wake from Deep Sleep" - repeat: 3 diff --git a/scripts/pylib/twister/twisterlib/harness.py b/scripts/pylib/twister/twisterlib/harness.py index d299c98c8e..c8aa437930 100644 --- a/scripts/pylib/twister/twisterlib/harness.py +++ b/scripts/pylib/twister/twisterlib/harness.py @@ -49,7 +49,6 @@ class Harness: self.regex = [] self.matches = OrderedDict() self.ordered = True - self.repeat = 1 self.id = None self.fail_on_fault = True self.fault = False @@ -78,7 +77,6 @@ class Harness: if config: self.type = config.get('type', None) self.regex = config.get('regex', []) - self.repeat = config.get('repeat', 1) self.ordered = config.get('ordered', True) self.record = config.get('record', {}) if self.record: diff --git a/scripts/schemas/twister/testsuite-schema.yaml b/scripts/schemas/twister/testsuite-schema.yaml index 454959fc60..1eae7dcef1 100644 --- a/scripts/schemas/twister/testsuite-schema.yaml +++ b/scripts/schemas/twister/testsuite-schema.yaml @@ -101,9 +101,6 @@ schema;scenario-schema: "ordered": type: bool required: false - "repeat": - type: int - required: false "pytest_root": type: seq required: false