diff options
Diffstat (limited to 'meta/lib/oeqa/utils/qemurunner.py')
| -rw-r--r-- | meta/lib/oeqa/utils/qemurunner.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py index b5c757a927..d362edeecb 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py | |||
| @@ -16,7 +16,7 @@ import bb | |||
| 16 | 16 | ||
| 17 | class QemuRunner: | 17 | class QemuRunner: |
| 18 | 18 | ||
| 19 | def __init__(self, machine, rootfs, display = None, tmpdir = None, logfile = None, boottime = 400, runqemutime = 60): | 19 | def __init__(self, machine, rootfs, display = None, tmpdir = None, deploy_dir_image = None, logfile = None, boottime = 400, runqemutime = 60): |
| 20 | # Popen object | 20 | # Popen object |
| 21 | self.runqemu = None | 21 | self.runqemu = None |
| 22 | 22 | ||
| @@ -28,6 +28,7 @@ class QemuRunner: | |||
| 28 | 28 | ||
| 29 | self.display = display | 29 | self.display = display |
| 30 | self.tmpdir = tmpdir | 30 | self.tmpdir = tmpdir |
| 31 | self.deploy_dir_image = deploy_dir_image | ||
| 31 | self.logfile = logfile | 32 | self.logfile = logfile |
| 32 | self.boottime = boottime | 33 | self.boottime = boottime |
| 33 | self.runqemutime = runqemutime | 34 | self.runqemutime = runqemutime |
| @@ -71,6 +72,11 @@ class QemuRunner: | |||
| 71 | return False | 72 | return False |
| 72 | else: | 73 | else: |
| 73 | os.environ["OE_TMPDIR"] = self.tmpdir | 74 | os.environ["OE_TMPDIR"] = self.tmpdir |
| 75 | if not os.path.exists(self.deploy_dir_image): | ||
| 76 | bb.error("Invalid DEPLOY_DIR_IMAGE path %s" % self.deploy_dir_image) | ||
| 77 | return False | ||
| 78 | else: | ||
| 79 | os.environ["DEPLOY_DIR_IMAGE"] = self.deploy_dir_image | ||
| 74 | 80 | ||
| 75 | self.qemuparams = 'bootparams="console=tty1 console=ttyS0,115200n8" qemuparams="-serial tcp:127.0.0.1:%s"' % self.serverport | 81 | self.qemuparams = 'bootparams="console=tty1 console=ttyS0,115200n8" qemuparams="-serial tcp:127.0.0.1:%s"' % self.serverport |
| 76 | if qemuparams: | 82 | if qemuparams: |
