aboutsummaryrefslogtreecommitdiff
path: root/zephyr-upstream
diff options
context:
space:
mode:
authorPaul Sokolovsky <paul.sokolovsky@linaro.org>2020-07-02 13:38:34 +0300
committerPaul Sokolovskyy <paul.sokolovsky@linaro.org>2020-07-02 14:12:01 +0000
commitd0ee6200b4c86956c08e56f58f760a8a983df2cb (patch)
tree3c47845c2f987afa9878d8dc01a4c0c786db3542 /zephyr-upstream
parentf526050f7a5baa1fa966253676ab8e9eb2354c2f (diff)
zephyr-upstream: submit_for_testing: Skip tests requiring special "harness"
The current boards in the LAVA lab don't have any special setup, so cannot run tests with special values of "harness" in testcase.yaml (beyond simple "harness: console"). If they are run, they just fail, a problem which we have now. So, filter out any such tests. Change-Id: I40b3e0ca2bddba6d487ec101e71d04cc741732e0 Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Diffstat (limited to 'zephyr-upstream')
-rw-r--r--zephyr-upstream/submit_for_testing.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/zephyr-upstream/submit_for_testing.py b/zephyr-upstream/submit_for_testing.py
index 3ee1820f67..fda55bc39a 100644
--- a/zephyr-upstream/submit_for_testing.py
+++ b/zephyr-upstream/submit_for_testing.py
@@ -344,7 +344,18 @@ def main():
test_list = generate_test_list(args.board_name, args.device_type)
tests_submitted = 0
for test in test_list:
- re = get_regex(test, get_yaml(test))
+ yaml_config = get_yaml(test)
+ harness_section = get_section_with_harness(test, yaml_config)
+
+ # As of now, LAVA lab doesn't have boards with special harnesses,
+ # so skip tests which require something beyond basic "console".
+ if harness_section and harness_section["harness"] != "console":
+ print("Warning: test %s requires harness '%s', skipping" % (
+ test, harness_section["harness"]
+ ))
+ continue
+
+ re = get_regex(test, yaml_config)
test_name = test.rsplit('/zephyr.bin')[0].replace('/', '-').replace('.', '-')
if re is None:
test_action = \