From: Mathieu Dubois-Briand <[email protected]>

A previous patch broke archive retrieval because of an undeclared
variable. Declare the archive_name variable as expected.

Signed-off-by: Mathieu Dubois-Briand <[email protected]>
Reported-by: Richard Purdie <[email protected]>
CC: Alexis LothorĂ© <[email protected]>
CC: Alexandre Belloni <[email protected]>
---
 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 d5080523aa83..8f787838b9d9 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.39.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#204729): 
https://lists.openembedded.org/g/openembedded-core/message/204729
Mute This Topic: https://lists.openembedded.org/mt/108555933/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to