summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>2025-10-07 19:38:08 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-10-09 10:58:07 +0100
commit0cbe95e5aefac6fa7154d4d2b61e36785f405de0 (patch)
treecca5018982b3e4d6ebd38f801c1e7c28c49de95d /meta
parent55f1f00d25d465e687665c7687b2edbc38c3f357 (diff)
downloadpoky-0cbe95e5aefac6fa7154d4d2b61e36785f405de0.tar.gz
oeqa: postactions: Ignore SSH errors
Postactions are not part of the tests but allow to retrieve useful data from the target. They try to do this using SSH, but this can fail when no SSH server is present on the target. Ignore these fails. (From OE-Core rev: b7b3db490f9cdf99e71f114aec9fc8ad5c1d1d56) Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/utils/postactions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/utils/postactions.py b/meta/lib/oeqa/utils/postactions.py
index c69481db6c..7b967edaad 100644
--- a/meta/lib/oeqa/utils/postactions.py
+++ b/meta/lib/oeqa/utils/postactions.py
@@ -22,7 +22,7 @@ from oeqa.utils import get_artefact_dir
22def get_target_disk_usage(d, tc, artifacts_list, outputdir): 22def get_target_disk_usage(d, tc, artifacts_list, outputdir):
23 output_file = os.path.join(outputdir, "target_disk_usage.txt") 23 output_file = os.path.join(outputdir, "target_disk_usage.txt")
24 try: 24 try:
25 (status, output) = tc.target.run('df -h') 25 (status, output) = tc.target.run('df -h', ignore_ssh_fails=True)
26 with open(output_file, 'w') as f: 26 with open(output_file, 'w') as f:
27 f.write(output) 27 f.write(output)
28 f.write("\n") 28 f.write("\n")
@@ -49,7 +49,7 @@ def get_artifacts_list(target, raw_list):
49 for raw_path in raw_list.split(): 49 for raw_path in raw_list.split():
50 cmd = f"for p in {raw_path}; do if [ -e $p ]; then echo $p; fi; done" 50 cmd = f"for p in {raw_path}; do if [ -e $p ]; then echo $p; fi; done"
51 try: 51 try:
52 status, output = target.run(cmd) 52 status, output = target.run(cmd, ignore_ssh_fails=True)
53 if status != 0 or not output: 53 if status != 0 or not output:
54 raise Exception() 54 raise Exception()
55 result += output.split() 55 result += output.split()