A previous patch broke archive retrieval because of an undeclared
variable. Declare the archive_name variable as expected.
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>
(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: