]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa: start() add remaining args SimpleRemoteTarget and QemuTinyRunner
authorAníbal Limón <anibal.limon@linux.intel.com>
Mon, 8 Aug 2016 20:41:28 +0000 (15:41 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Aug 2016 09:45:33 +0000 (10:45 +0100)
Now Runner's support extra_bootargs for the kernel so add
extra_bootparams to the start() methods to avoid exception.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oeqa/targetcontrol.py
meta/lib/oeqa/utils/qemutinyrunner.py

index d3b49b770afc118e4d156c0b76b2e0ab54b6af26..768c4630761a1e6abad43f130b2ebf1ce2569982 100644 (file)
@@ -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)
 
index c823157ad6d158ff400e6e27b50cb692e5558e97..7f7489de42f1be484e9f7dd369d314cdd2b40df0 100644 (file)
@@ -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]]