mirror of
https://git.yoctoproject.org/poky
synced 2026-09-24 22:36:21 +02:00
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. (From OE-Core rev: 4c28c03a2322fbcb9a5c268b08eaeb71d940ee04) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
4a4a24fccc
commit
3ac3f3f309
@@ -66,7 +66,7 @@ class BaseTarget(object, metaclass=ABCMeta):
|
|||||||
bb.note("SSH log file: %s" % self.sshlog)
|
bb.note("SSH log file: %s" % self.sshlog)
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def start(self, params=None, ssh=True):
|
def start(self, params=None, ssh=True, extra_bootparams=None):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
@@ -230,7 +230,7 @@ class SimpleRemoteTarget(BaseTarget):
|
|||||||
def deploy(self):
|
def deploy(self):
|
||||||
super(SimpleRemoteTarget, self).deploy()
|
super(SimpleRemoteTarget, self).deploy()
|
||||||
|
|
||||||
def start(self, params=None, ssh=True):
|
def start(self, params=None, ssh=True, extra_bootparams=None):
|
||||||
if ssh:
|
if ssh:
|
||||||
self.connection = SSHControl(self.ip, logfile=self.sshlog, port=self.port)
|
self.connection = SSHControl(self.ip, logfile=self.sshlog, port=self.port)
|
||||||
|
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ class QemuTinyRunner(QemuRunner):
|
|||||||
with open(self.logfile, "a") as f:
|
with open(self.logfile, "a") as f:
|
||||||
f.write("%s" % msg)
|
f.write("%s" % msg)
|
||||||
|
|
||||||
def start(self, qemuparams = None):
|
def start(self, qemuparams = None, ssh=True, extra_bootparams=None):
|
||||||
|
|
||||||
if self.display:
|
if self.display:
|
||||||
os.environ["DISPLAY"] = self.display
|
os.environ["DISPLAY"] = self.display
|
||||||
|
|||||||
Reference in New Issue
Block a user