summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oeqa/utils/postactions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/postactions.py b/meta/lib/oeqa/utils/postactions.py
index 3b537146c5..d5080523aa 100644
--- a/meta/lib/oeqa/utils/postactions.py
+++ b/meta/lib/oeqa/utils/postactions.py
@@ -68,7 +68,8 @@ def list_and_fetch_failed_tests_artifacts(d, tc, artifacts_list, outputdir):
68 (status, output) = tc.target.run(cmd, raw = True) 68 (status, output) = tc.target.run(cmd, raw = True)
69 if status != 0 or not output: 69 if status != 0 or not output:
70 raise Exception("Error while fetching compressed artifacts") 70 raise Exception("Error while fetching compressed artifacts")
71 p = subprocess.run(["tar", "zxf", "-", "-C", outputdir], input=output) 71 with open(archive_name, "wb") as f:
72 f.write(output)
72 except Exception as e: 73 except Exception as e:
73 bb.warn(f"Can not retrieve artifacts from test target: {e}") 74 bb.warn(f"Can not retrieve artifacts from test target: {e}")
74 75