diff options
author | Alexis Lothoré <alexis.lothore@bootlin.com> | 2024-08-12 17:14:03 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-08-13 09:29:15 +0100 |
commit | 3ce0e9b058aaf1ee94dbf956d52d3af77db0034e (patch) | |
tree | 7203557be56db7e7aefbd6c6d34bebb3c9119f82 /meta/lib/oeqa/utils/postactions.py | |
parent | b91f205d417495be20142691d37f682fac29b6a6 (diff) | |
download | poky-3ce0e9b058aaf1ee94dbf956d52d3af77db0034e.tar.gz |
oeqa/postactions: fix exception handling
The current exception handler in list_and_fetch_failed_tests_artifacts
expects a non-exisiting variable and then fail to display the original
exception message since it raises a new one. The issue has been introduced
with commit 6e80b2ab660e ("oeqa/utils/postactions: transfer whole archive
over ssh instead of doing individual copies"). Now that tests artifacts are
now handled individually, there's no point of trying to print individual
names in the exception.
(From OE-Core rev: a50e72bb64fb8b0d14c23164eaeeabd9c271ac19)
Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/utils/postactions.py')
-rw-r--r-- | meta/lib/oeqa/utils/postactions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/postactions.py b/meta/lib/oeqa/utils/postactions.py index 2de2d18328..3b537146c5 100644 --- a/meta/lib/oeqa/utils/postactions.py +++ b/meta/lib/oeqa/utils/postactions.py | |||
@@ -70,7 +70,7 @@ def list_and_fetch_failed_tests_artifacts(d, tc, artifacts_list, outputdir): | |||
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 | p = subprocess.run(["tar", "zxf", "-", "-C", outputdir], input=output) |
72 | except Exception as e: | 72 | except Exception as e: |
73 | bb.warn(f"Can not retrieve {artifact_path} from test target: {e}") | 73 | bb.warn(f"Can not retrieve artifacts from test target: {e}") |
74 | 74 | ||
75 | 75 | ||
76 | ################################################################## | 76 | ################################################################## |