From 0d0f3541552b073f3536176e2caf847bec24548d Mon Sep 17 00:00:00 2001 From: Mathieu Dubois-Briand Date: Fri, 20 Sep 2024 11:48:44 +0200 Subject: [PATCH] oeqa/postactions: Fix archive retrieval from target MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- meta/lib/oeqa/utils/postactions.py | 1 + 1 file changed, 1 insertion(+) 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: -- 2.47.3