Skip to contentSkip to conversation

oeqa: start() add remaining args SimpleRemoteTarget and QemuTinyRunner

PATCH New Aníbal Limón 1 participant 1 message Aug 8, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oeqa: start() add remaining args SimpleRemoteTarget and QemuTinyRunner

Now Runner's support extra_bootargs for the kernel so add extra_bootparams to the start() methods to avoid exception.

---
 meta/lib/oeqa/targetcontrol.py        | 4 ++--
 meta/lib/oeqa/utils/qemutinyrunner.py | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
meta/lib/oeqa/targetcontrol.py +2 -2
index d3b49b7..768c463 100644
@@ -66,7 +66,7 @@ class BaseTarget(object, metaclass=ABCMeta):
         bb.note("SSH log file: %s" %  self.sshlog)
 
     @abstractmethod
-    def start(self, params=None, ssh=True):
+    def start(self, params=None, ssh=True, extra_bootparams=None):
         pass
 
     @abstractmethod
@@ -230,7 +230,7 @@ class SimpleRemoteTarget(BaseTarget):
     def deploy(self):
         super(SimpleRemoteTarget, self).deploy()
 
-    def start(self, params=None, ssh=True):
+    def start(self, params=None, ssh=True, extra_bootparams=None):
         if ssh:
             self.connection = SSHControl(self.ip, logfile=self.sshlog, port=self.port)
 
meta/lib/oeqa/utils/qemutinyrunner.py +2 -2
index c823157..7f7489d 100644
@@ -60,7 +60,7 @@ class QemuTinyRunner(QemuRunner):
             with open(self.logfile, "a") as f:
                 f.write("%s" % msg)
 
-    def start(self, qemuparams = None):
+    def start(self, qemuparams = None, ssh=True, extra_bootparams=None):
 
         if self.display:
             os.environ["DISPLAY"] = self.display
@@ -167,4 +167,4 @@ class QemuTinyRunner(QemuRunner):
             basecmd = commands[p].split()[0]
             basecmd = os.path.basename(basecmd)
             if "qemu-system" in basecmd and "-serial unix" in commands[p]:
-                return [int(p),commands[p]]
\ No newline at end of file
+                return [int(p),commands[p]]
Signature · 1 line
2.1.4