diff options
author | Stefan Stanacar <stefanx.stanacar@intel.com> | 2014-04-30 13:31:58 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-04-30 21:52:11 +0100 |
commit | 1dd1edb5ea551c8a01538b130aa4d0c361eae14d (patch) | |
tree | 6a8d9d06d781c0e5e5a04d633c50a1420b216696 /meta/lib/oeqa/targetcontrol.py | |
parent | 1d70b1908e1dc5d612b0627022659639e3f384e5 (diff) | |
download | openembedded-core-1dd1edb5ea551c8a01538b130aa4d0c361eae14d.tar.gz openembedded-core-1dd1edb5ea551c8a01538b130aa4d0c361eae14d.tar.bz2 openembedded-core-1dd1edb5ea551c8a01538b130aa4d0c361eae14d.zip |
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.
Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/targetcontrol.py')
-rw-r--r-- | meta/lib/oeqa/targetcontrol.py | 7 |
1 files changed, 2 insertions, 5 deletions
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): def stop(self): pass - @abstractmethod def restart(self, params=None): - pass + self.stop() + self.start(params) def run(self, cmd, timeout=None): return self.connection.run(cmd, timeout) @@ -170,6 +170,3 @@ class SimpleRemoteTarget(BaseTarget): self.connection = None self.ip = None self.server_ip = None - - def restart(self, params=None): - pass |