diff options
author | Thomas Roos <throos@amazon.de> | 2023-05-17 16:36:13 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-29 10:57:27 +0100 |
commit | f82c3bd37d62a3efc49fd33efa38a7f523e6c676 (patch) | |
tree | af91e742b938e4116a5082bfb9351dba83616cca /meta/lib/oeqa/runtime | |
parent | 303421dce02fec67daab0dc86d85e11963d5741f (diff) | |
download | poky-f82c3bd37d62a3efc49fd33efa38a7f523e6c676.tar.gz |
testimage/oeqa: Drop testimage_dump_host functionality
The intent behind these functions was to dump the system state when issues occured
but it has never really worked as we'd planned. Regular monitoring as the build
runs has largely replaced this as that allows a trend to be seen rather than a spot
value which was never really useful. The code is bitrotting and not functioning
correctly so drop it.
[YOCTO #13872]
RP: Reword commit message
(From OE-Core rev: dea37ba49a236029da73d5cfbfc069bffc38b508)
Signed-off-by: Thomas Roos <throos@amazon.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime')
-rw-r--r-- | meta/lib/oeqa/runtime/context.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/meta/lib/oeqa/runtime/context.py b/meta/lib/oeqa/runtime/context.py index 0c5d1869ab..cb7227a8df 100644 --- a/meta/lib/oeqa/runtime/context.py +++ b/meta/lib/oeqa/runtime/context.py | |||
@@ -10,7 +10,6 @@ import sys | |||
10 | from oeqa.core.context import OETestContext, OETestContextExecutor | 10 | from oeqa.core.context import OETestContext, OETestContextExecutor |
11 | from oeqa.core.target.ssh import OESSHTarget | 11 | from oeqa.core.target.ssh import OESSHTarget |
12 | from oeqa.core.target.qemu import OEQemuTarget | 12 | from oeqa.core.target.qemu import OEQemuTarget |
13 | from oeqa.utils.dump import HostDumper | ||
14 | 13 | ||
15 | from oeqa.runtime.loader import OERuntimeTestLoader | 14 | from oeqa.runtime.loader import OERuntimeTestLoader |
16 | 15 | ||
@@ -20,12 +19,11 @@ class OERuntimeTestContext(OETestContext): | |||
20 | os.path.dirname(os.path.abspath(__file__)), "files") | 19 | os.path.dirname(os.path.abspath(__file__)), "files") |
21 | 20 | ||
22 | def __init__(self, td, logger, target, | 21 | def __init__(self, td, logger, target, |
23 | host_dumper, image_packages, extract_dir): | 22 | image_packages, extract_dir): |
24 | super(OERuntimeTestContext, self).__init__(td, logger) | 23 | super(OERuntimeTestContext, self).__init__(td, logger) |
25 | 24 | ||
26 | self.target = target | 25 | self.target = target |
27 | self.image_packages = image_packages | 26 | self.image_packages = image_packages |
28 | self.host_dumper = host_dumper | ||
29 | self.extract_dir = extract_dir | 27 | self.extract_dir = extract_dir |
30 | self._set_target_cmds() | 28 | self._set_target_cmds() |
31 | 29 | ||
@@ -199,10 +197,6 @@ class OERuntimeTestContextExecutor(OETestContextExecutor): | |||
199 | 197 | ||
200 | return image_packages | 198 | return image_packages |
201 | 199 | ||
202 | @staticmethod | ||
203 | def getHostDumper(cmds, directory): | ||
204 | return HostDumper(cmds, directory) | ||
205 | |||
206 | def _process_args(self, logger, args): | 200 | def _process_args(self, logger, args): |
207 | if not args.packages_manifest: | 201 | if not args.packages_manifest: |
208 | raise TypeError('Manifest file not provided') | 202 | raise TypeError('Manifest file not provided') |
@@ -215,9 +209,6 @@ class OERuntimeTestContextExecutor(OETestContextExecutor): | |||
215 | self.tc_kwargs['init']['target'] = \ | 209 | self.tc_kwargs['init']['target'] = \ |
216 | OERuntimeTestContextExecutor.getTarget(args.target_type, | 210 | OERuntimeTestContextExecutor.getTarget(args.target_type, |
217 | None, args.target_ip, args.server_ip, **target_kwargs) | 211 | None, args.target_ip, args.server_ip, **target_kwargs) |
218 | self.tc_kwargs['init']['host_dumper'] = \ | ||
219 | OERuntimeTestContextExecutor.getHostDumper(None, | ||
220 | args.host_dumper_dir) | ||
221 | self.tc_kwargs['init']['image_packages'] = \ | 212 | self.tc_kwargs['init']['image_packages'] = \ |
222 | OERuntimeTestContextExecutor.readPackagesManifest( | 213 | OERuntimeTestContextExecutor.readPackagesManifest( |
223 | args.packages_manifest) | 214 | args.packages_manifest) |