diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-08 17:54:31 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-10 10:52:20 +0100 |
| commit | 665fdc4ea9bc00767718a46f230d3200262b1137 (patch) | |
| tree | 4c78355f3fff2d29795c49267e07511394ba6d8b /meta/lib/oeqa/utils | |
| parent | 25b01c23c527647076214d90b17f6794d844e947 (diff) | |
| download | poky-665fdc4ea9bc00767718a46f230d3200262b1137.tar.gz | |
testimage/postactions: Allow artifact collection to be skipped
It does not always make sense to collect artifacts and data from the
target on failure, e.g. if testing firmware or if the target is not
running an SSH server.
Allow this by setting TESTIMAGE_FAILED_QA_ARTIFACTS to an empty
value.
(From OE-Core rev: 7036f814baa6550e0b1ac2db37fcd51960ee9e48)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/utils')
| -rw-r--r-- | meta/lib/oeqa/utils/postactions.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/lib/oeqa/utils/postactions.py b/meta/lib/oeqa/utils/postactions.py index 2a08129d6c..15f423218e 100644 --- a/meta/lib/oeqa/utils/postactions.py +++ b/meta/lib/oeqa/utils/postactions.py | |||
| @@ -86,6 +86,11 @@ def list_and_fetch_failed_tests_artifacts(d, tc): | |||
| 86 | ################################################################## | 86 | ################################################################## |
| 87 | 87 | ||
| 88 | def run_failed_tests_post_actions(d, tc): | 88 | def run_failed_tests_post_actions(d, tc): |
| 89 | artifacts = d.getVar("TESTIMAGE_FAILED_QA_ARTIFACTS") | ||
| 90 | # Allow all the code to be disabled by having no artifacts set, e.g. for systems with no ssh support | ||
| 91 | if not artifacts: | ||
| 92 | return | ||
| 93 | |||
| 89 | post_actions=[ | 94 | post_actions=[ |
| 90 | create_artifacts_directory, | 95 | create_artifacts_directory, |
| 91 | list_and_fetch_failed_tests_artifacts, | 96 | list_and_fetch_failed_tests_artifacts, |
