From: Mathieu Dubois-Briand Date: Fri, 20 Sep 2024 09:48:44 +0000 (+0200) Subject: oeqa/postactions: Fix archive retrieval from target X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d0f3541552b073f3536176e2caf847bec24548d;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Mathieu Dubois-Briand Reported-by: Richard Purdie CC: Alexis Lothoré CC: Alexandre Belloni Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/utils/postactions.py b/meta/lib/oeqa/utils/postactions.py index d5080523aa8..8f787838b9d 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): (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: