diff options
-rw-r--r-- | meta/lib/oeqa/controllers/masterimage.py | 3 | ||||
-rw-r--r-- | meta/lib/oeqa/targetcontrol.py | 7 |
2 files changed, 2 insertions, 8 deletions
diff --git a/meta/lib/oeqa/controllers/masterimage.py b/meta/lib/oeqa/controllers/masterimage.py index 1bd0ab4c66..e8d321f7ab 100644 --- a/meta/lib/oeqa/controllers/masterimage.py +++ b/meta/lib/oeqa/controllers/masterimage.py | |||
@@ -133,9 +133,6 @@ class MasterImageHardwareTarget(oeqa.targetcontrol.BaseTarget): | |||
133 | bb.plain("%s - reboot/powercycle target" % self.pn) | 133 | bb.plain("%s - reboot/powercycle target" % self.pn) |
134 | self.power_cycle(self.connection) | 134 | self.power_cycle(self.connection) |
135 | 135 | ||
136 | def restart(self): | ||
137 | pass | ||
138 | |||
139 | 136 | ||
140 | class GummibootTarget(MasterImageHardwareTarget): | 137 | class GummibootTarget(MasterImageHardwareTarget): |
141 | 138 | ||
diff --git a/meta/lib/oeqa/targetcontrol.py b/meta/lib/oeqa/targetcontrol.py index 873a66457a..02cb370f2e 100644 --- a/meta/lib/oeqa/targetcontrol.py +++ b/meta/lib/oeqa/targetcontrol.py | |||
@@ -70,9 +70,9 @@ class BaseTarget(object): | |||
70 | def stop(self): | 70 | def stop(self): |
71 | pass | 71 | pass |
72 | 72 | ||
73 | @abstractmethod | ||
74 | def restart(self, params=None): | 73 | def restart(self, params=None): |
75 | pass | 74 | self.stop() |
75 | self.start(params) | ||
76 | 76 | ||
77 | def run(self, cmd, timeout=None): | 77 | def run(self, cmd, timeout=None): |
78 | return self.connection.run(cmd, timeout) | 78 | return self.connection.run(cmd, timeout) |
@@ -170,6 +170,3 @@ class SimpleRemoteTarget(BaseTarget): | |||
170 | self.connection = None | 170 | self.connection = None |
171 | self.ip = None | 171 | self.ip = None |
172 | self.server_ip = None | 172 | self.server_ip = None |
173 | |||
174 | def restart(self, params=None): | ||
175 | pass | ||