mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 01:40:07 +00:00
oeqa/targetcontrol: restart method shouldn't be abstract
And drop the un-needed and un-used restart methods. Only qemu ever used this and actually does it safely. (From OE-Core rev: 1dd1edb5ea551c8a01538b130aa4d0c361eae14d) Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
cc4234eaca
commit
bd64b91314
@@ -133,9 +133,6 @@ class MasterImageHardwareTarget(oeqa.targetcontrol.BaseTarget):
|
|||||||
bb.plain("%s - reboot/powercycle target" % self.pn)
|
bb.plain("%s - reboot/powercycle target" % self.pn)
|
||||||
self.power_cycle(self.connection)
|
self.power_cycle(self.connection)
|
||||||
|
|
||||||
def restart(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class GummibootTarget(MasterImageHardwareTarget):
|
class GummibootTarget(MasterImageHardwareTarget):
|
||||||
|
|
||||||
|
|||||||
@@ -70,9 +70,9 @@ class BaseTarget(object):
|
|||||||
def stop(self):
|
def stop(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@abstractmethod
|
|
||||||
def restart(self, params=None):
|
def restart(self, params=None):
|
||||||
pass
|
self.stop()
|
||||||
|
self.start(params)
|
||||||
|
|
||||||
def run(self, cmd, timeout=None):
|
def run(self, cmd, timeout=None):
|
||||||
return self.connection.run(cmd, timeout)
|
return self.connection.run(cmd, timeout)
|
||||||
@@ -170,6 +170,3 @@ class SimpleRemoteTarget(BaseTarget):
|
|||||||
self.connection = None
|
self.connection = None
|
||||||
self.ip = None
|
self.ip = None
|
||||||
self.server_ip = None
|
self.server_ip = None
|
||||||
|
|
||||||
def restart(self, params=None):
|
|
||||||
pass
|
|
||||||
|
|||||||
Reference in New Issue
Block a user