diff options
author | Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> | 2024-09-20 11:48:44 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-09-20 15:59:03 +0100 |
commit | d0887fbdcee460710c8d2491c2d9b9295336a83e (patch) | |
tree | aade82f8e853180c060aefae2005daf16e115db2 /meta/lib/oeqa/utils/postactions.py | |
parent | 4a6d8703072031a5ef9eaf118e69538157646597 (diff) | |
download | poky-d0887fbdcee460710c8d2491c2d9b9295336a83e.tar.gz |
oeqa/postactions: Fix archive retrieval from target
A previous patch broke archive retrieval because of an undeclared
variable. Declare the archive_name variable as expected.
(From OE-Core rev: 39d78fa53fb98515af6dc72c60017e5335993372)
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Reported-by: Richard Purdie <richard.purdie@linuxfoundation.org>
CC: Alexis Lothoré <alexis.lothore@bootlin.com>
CC: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/utils/postactions.py')
-rw-r--r-- | meta/lib/oeqa/utils/postactions.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/lib/oeqa/utils/postactions.py b/meta/lib/oeqa/utils/postactions.py index d5080523aa..8f787838b9 100644 --- a/meta/lib/oeqa/utils/postactions.py +++ b/meta/lib/oeqa/utils/postactions.py | |||
@@ -68,6 +68,7 @@ def list_and_fetch_failed_tests_artifacts(d, tc, artifacts_list, outputdir): | |||
68 | (status, output) = tc.target.run(cmd, raw = True) | 68 | (status, output) = tc.target.run(cmd, raw = True) |
69 | if status != 0 or not output: | 69 | if status != 0 or not output: |
70 | raise Exception("Error while fetching compressed artifacts") | 70 | raise Exception("Error while fetching compressed artifacts") |
71 | archive_name = os.path.join(outputdir, "tests_artifacts.tar.gz") | ||
71 | with open(archive_name, "wb") as f: | 72 | with open(archive_name, "wb") as f: |
72 | f.write(output) | 73 | f.write(output) |
73 | except Exception as e: | 74 | except Exception as e: |