mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 09:49:32 +02:00
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: 8d1bc34cffdd9f054e51db4e880747c79bf834fe) 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> (cherry picked from commit dea37ba49a236029da73d5cfbfc069bffc38b508) Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
committed by
Steve Sakoman
parent
4c02657a44
commit
4f1eb64d15
@@ -10,7 +10,6 @@ import sys
|
||||
from oeqa.core.context import OETestContext, OETestContextExecutor
|
||||
from oeqa.core.target.ssh import OESSHTarget
|
||||
from oeqa.core.target.qemu import OEQemuTarget
|
||||
from oeqa.utils.dump import HostDumper
|
||||
|
||||
from oeqa.runtime.loader import OERuntimeTestLoader
|
||||
|
||||
@@ -20,12 +19,11 @@ class OERuntimeTestContext(OETestContext):
|
||||
os.path.dirname(os.path.abspath(__file__)), "files")
|
||||
|
||||
def __init__(self, td, logger, target,
|
||||
host_dumper, image_packages, extract_dir):
|
||||
image_packages, extract_dir):
|
||||
super(OERuntimeTestContext, self).__init__(td, logger)
|
||||
|
||||
self.target = target
|
||||
self.image_packages = image_packages
|
||||
self.host_dumper = host_dumper
|
||||
self.extract_dir = extract_dir
|
||||
self._set_target_cmds()
|
||||
|
||||
@@ -199,10 +197,6 @@ class OERuntimeTestContextExecutor(OETestContextExecutor):
|
||||
|
||||
return image_packages
|
||||
|
||||
@staticmethod
|
||||
def getHostDumper(cmds, directory):
|
||||
return HostDumper(cmds, directory)
|
||||
|
||||
def _process_args(self, logger, args):
|
||||
if not args.packages_manifest:
|
||||
raise TypeError('Manifest file not provided')
|
||||
@@ -215,9 +209,6 @@ class OERuntimeTestContextExecutor(OETestContextExecutor):
|
||||
self.tc_kwargs['init']['target'] = \
|
||||
OERuntimeTestContextExecutor.getTarget(args.target_type,
|
||||
None, args.target_ip, args.server_ip, **target_kwargs)
|
||||
self.tc_kwargs['init']['host_dumper'] = \
|
||||
OERuntimeTestContextExecutor.getHostDumper(None,
|
||||
args.host_dumper_dir)
|
||||
self.tc_kwargs['init']['image_packages'] = \
|
||||
OERuntimeTestContextExecutor.readPackagesManifest(
|
||||
args.packages_manifest)
|
||||
|
||||
Reference in New Issue
Block a user