aboutsummaryrefslogtreecommitdiffstats
path: root/lib/oeqa/utils/qemuzephyrrunner.py
diff options
context:
space:
mode:
authorJon Mason <jdmason@kudzu.us>2021-04-25 18:07:41 -0400
committerNaveen Saini <naveen.kumar.saini@intel.com>2021-04-27 10:46:58 +0800
commit678600bee6092e58110a826a9cbefc2f5c52916c (patch)
tree538db71294973e0acbde2451fa8808d84722b00f /lib/oeqa/utils/qemuzephyrrunner.py
parent15c5eea4ca6fae11b483ed262ef55e72a1880a83 (diff)
downloadmeta-zephyr-678600bee6092e58110a826a9cbefc2f5c52916c.tar.gz
meta-zephyr-678600bee6092e58110a826a9cbefc2f5c52916c.tar.bz2
meta-zephyr-678600bee6092e58110a826a9cbefc2f5c52916c.zip
qemuzephyrrunner.py: add tmpfsdir support
OE-Core rev: fd1c26ab426c3699ffd8082b83d65a84c8eb8bff added an additional parameter, tmpfsdir, to the API. This caused testimage to no longer work in meta-zephyr. Add that parameter and everything is happy now. Signed-off-by: Jon Mason <jon.mason@arm.com> Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Diffstat (limited to 'lib/oeqa/utils/qemuzephyrrunner.py')
-rw-r--r--lib/oeqa/utils/qemuzephyrrunner.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/oeqa/utils/qemuzephyrrunner.py b/lib/oeqa/utils/qemuzephyrrunner.py
index 0308f1e..e8a1bd4 100644
--- a/lib/oeqa/utils/qemuzephyrrunner.py
+++ b/lib/oeqa/utils/qemuzephyrrunner.py
@@ -18,11 +18,12 @@ from oeqa.utils.qemurunner import QemuRunner
class QemuZephyrRunner(QemuRunner):
- def __init__(self, machine, rootfs, display, tmpdir, deploy_dir_image, logfile, boottime, dump_dir, dump_host_cmds, use_kvm, logger):
+ def __init__(self, machine, rootfs, display, tmpdir, deploy_dir_image, logfile, boottime, dump_dir, dump_host_cmds, use_kvm, logger, tmpfsdir):
+
QemuRunner.__init__(self, machine, rootfs, display, tmpdir,
deploy_dir_image, logfile, boottime, None,
- None, use_kvm, logger)
+ None, use_kvm, logger, tmpfsdir)
# Popen object for runqemu
self.socketfile = tempfile.NamedTemporaryFile()
@@ -32,6 +33,7 @@ class QemuZephyrRunner(QemuRunner):
self.kernel = rootfs
self.deploy_dir_image = deploy_dir_image
+ self.tmpfsdir = tmpfsdir
self.logfile = logfile
self.use_kvm = use_kvm
@@ -73,6 +75,8 @@ class QemuZephyrRunner(QemuRunner):
return False
else:
os.environ["DEPLOY_DIR_IMAGE"] = self.deploy_dir_image
+ if self.tmpfsdir:
+ env["RUNQEMU_TMPFS_DIR"] = self.tmpfsdir
if not os.path.exists(self.kernel):
bb.error("Invalid kernel path: %s" % self.kernel)