mirror of
https://git.yoctoproject.org/poky
synced 2026-04-03 02:02:21 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
4a6d870307
commit
d0887fbdce
@@ -68,6 +68,7 @@ def list_and_fetch_failed_tests_artifacts(d, tc, artifacts_list, outputdir):
|
||||
(status, output) = tc.target.run(cmd, raw = True)
|
||||
if status != 0 or not output:
|
||||
raise Exception("Error while fetching compressed artifacts")
|
||||
archive_name = os.path.join(outputdir, "tests_artifacts.tar.gz")
|
||||
with open(archive_name, "wb") as f:
|
||||
f.write(output)
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user