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:
Mathieu Dubois-Briand
2024-09-20 11:48:44 +02:00
committed by Richard Purdie
parent 4a6d870307
commit d0887fbdce

View File

@@ -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: