Lines Matching +full:bad +full:- +full:key +full:- +full:1

4 # Copyright (c) 2018-2024 Intel Corporation
7 # SPDX-License-Identifier: Apache-2.0
28 print("Install the anytree module to use the --test-tree option")
50 "python-devicetree", "src"))
51 from devicetree import edtlib # pylint: disable=unused-import
57 PLATFORM_KEY = 'platform key filter'
86 config_re = re.compile('(CONFIG_[A-Za-z0-9_]+)[=]\"?([^\"]*)\"?$')
87 dt_re = re.compile('([A-Za-z0-9_]+)[=]\"?([^\"]*)\"?$')
91 "scripts", "schemas", "twister", "testsuite-schema.yaml"))
94 "scripts", "schemas", "twister", "quarantine-schema.yaml"))
101 "test-config-schema.yaml"
186 print(f" - {test}")
245 # If the platform does not exist in the hardware map or was not specified by --platform,
272 raise TwisterRuntimeError("Bad subset value.") from err
288 # the execution order is: "plat1-testA, plat1-testB, ...,
289 # plat1-testZ, plat2-testA, ...". For hardware tests
292 # "plat1-testA, plat2-testA, ..., plat1-testB, plat2-testB, ..."
295 key=lambda x: x[0][x[0].find("/") + 1:]))
317 num_extra_sets = total - (per_set * sets)
320 # so the last subset doesn't get overloaded, we add 1 extra to
321 # subsets 1..num_extra_sets.
323 start = (subset - 1) * (per_set + 1)
324 end = start + per_set + 1
326 base = num_extra_sets * (per_set + 1)
327 start = ((subset - num_extra_sets - 1) * per_set) + base
334 if subset == 1:
335 # add all pre-filtered tests that are skipped or got error status
350 logger.info("Test tree is always shown with detailed test-id.")
355 logger.info("Test list is always shown with detailed test-id.")
362 return 1
365 dupes = [item for item, count in collections.Counter(self.scenarios).items() if count > 1]
369 msg += (f"- {dupe} found in:\n")
371 msg += (f" - {dc.yamlfile}\n")
382 print(f"- {t}")
396 lambda node, sname=sec[1]: node.name == sname and node.parent == samples
399 area = Node(sec[1], parent=samples)
413 area, lambda node, sname=sec[1], sparent=area: node.name == sname
417 subarea = Node(sec[1], parent=area)
428 cnt = cnt + 1
429 print(f" - {test}")
487 self.load_errors += 1
497 self.load_errors += 1
512 if '/' not in qual and len(board.socs) == 1:
519 if '/' not in qual and len(board.socs) == 1 \
527 if '/' not in qual and len(board.socs) == 1:
651 logger.debug(f"Skip - {msg}")
662 self.load_errors += 1
729 self.instance_fail_count += 1
733 instance.retries += 1
734 # test marked as built only can run when --test-only is used.
773 return 1
808 # When --all used, any --platform arguments ignored
1063 # If the "appends" key is present with at least one entry then this
1064 # snippet applies to all boards and further platform-specific checks
1071 match = re.search(this_board[1:-1], plat.name)
1086 # platform_key is a list of unique platform attributes that form a unique key
1088 # A key containing a field name that the platform does not have
1100 for key in keys:
1101 if key is None or key == 'na':
1103 "Excluded platform missing key fields"
1121 f"Already covered for key {key}"
1122 f" by platform {keyed_test['plat'].name} having key {plat_key}",
1239 Verify if platform name (passed by --platform option, or in yaml file
1240 as platform_allow or integration_platforms options) is correct. If not -
1250 logger.error(f"{log_info} - unrecognized platform - {platform}")
1256 Iterate through all no-skipped instances in suite and create links
1273 path and link them with original path - create link. At the end
1294 self.link_dir_counter += 1