mirror of
git://git.yoctoproject.org/poky
synced 2026-08-12 16:06:35 +00:00
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>
This commit is contained in:
parent
25b01c23c5
commit
665fdc4ea9
@ -86,6 +86,11 @@ def list_and_fetch_failed_tests_artifacts(d, tc):
|
||||
##################################################################
|
||||
|
||||
def run_failed_tests_post_actions(d, tc):
|
||||
artifacts = d.getVar("TESTIMAGE_FAILED_QA_ARTIFACTS")
|
||||
# Allow all the code to be disabled by having no artifacts set, e.g. for systems with no ssh support
|
||||
if not artifacts:
|
||||
return
|
||||
|
||||
post_actions=[
|
||||
create_artifacts_directory,
|
||||
list_and_fetch_failed_tests_artifacts,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user