diff options
Diffstat (limited to 'meta/lib/oeqa/utils/qemutinyrunner.py')
-rw-r--r-- | meta/lib/oeqa/utils/qemutinyrunner.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/qemutinyrunner.py b/meta/lib/oeqa/utils/qemutinyrunner.py index 5c92941c0a..20009401ca 100644 --- a/meta/lib/oeqa/utils/qemutinyrunner.py +++ b/meta/lib/oeqa/utils/qemutinyrunner.py | |||
@@ -19,7 +19,7 @@ from .qemurunner import QemuRunner | |||
19 | 19 | ||
20 | class QemuTinyRunner(QemuRunner): | 20 | class QemuTinyRunner(QemuRunner): |
21 | 21 | ||
22 | def __init__(self, machine, rootfs, display, tmpdir, deploy_dir_image, logfile, kernel, boottime, logger): | 22 | def __init__(self, machine, rootfs, display, tmpdir, deploy_dir_image, logfile, kernel, boottime, logger, tmpfsdir=None): |
23 | 23 | ||
24 | # Popen object for runqemu | 24 | # Popen object for runqemu |
25 | self.runqemu = None | 25 | self.runqemu = None |
@@ -37,6 +37,7 @@ class QemuTinyRunner(QemuRunner): | |||
37 | self.deploy_dir_image = deploy_dir_image | 37 | self.deploy_dir_image = deploy_dir_image |
38 | self.logfile = logfile | 38 | self.logfile = logfile |
39 | self.boottime = boottime | 39 | self.boottime = boottime |
40 | self.tmpfsdir = tmpfsdir | ||
40 | 41 | ||
41 | self.runqemutime = 60 | 42 | self.runqemutime = 60 |
42 | self.socketfile = "console.sock" | 43 | self.socketfile = "console.sock" |
@@ -83,6 +84,9 @@ class QemuTinyRunner(QemuRunner): | |||
83 | return False | 84 | return False |
84 | else: | 85 | else: |
85 | os.environ["DEPLOY_DIR_IMAGE"] = self.deploy_dir_image | 86 | os.environ["DEPLOY_DIR_IMAGE"] = self.deploy_dir_image |
87 | if self.tmpfsdir: | ||
88 | env["RUNQEMU_TMPFS_DIR"] = self.tmpfsdir | ||
89 | |||
86 | 90 | ||
87 | # Set this flag so that Qemu doesn't do any grabs as SDL grabs interact | 91 | # Set this flag so that Qemu doesn't do any grabs as SDL grabs interact |
88 | # badly with screensavers. | 92 | # badly with screensavers. |