diff options
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/runqemu.py | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/meta/lib/oeqa/selftest/cases/runqemu.py b/meta/lib/oeqa/selftest/cases/runqemu.py index 58a4526df6..c2c3fbc924 100644 --- a/meta/lib/oeqa/selftest/cases/runqemu.py +++ b/meta/lib/oeqa/selftest/cases/runqemu.py | |||
| @@ -199,22 +199,12 @@ class QemuTest(OESelftestTestCase): | |||
| 199 | qemu_shutdown_succeeded = self._start_qemu_shutdown_check_if_shutdown_succeeded(qemu, shutdown_timeout) | 199 | qemu_shutdown_succeeded = self._start_qemu_shutdown_check_if_shutdown_succeeded(qemu, shutdown_timeout) |
| 200 | self.assertTrue(qemu_shutdown_succeeded, 'Failed: %s does not shutdown within timeout(%s)' % (self.machine, shutdown_timeout)) | 200 | self.assertTrue(qemu_shutdown_succeeded, 'Failed: %s does not shutdown within timeout(%s)' % (self.machine, shutdown_timeout)) |
| 201 | 201 | ||
| 202 | # Need to have portmap/rpcbind running to allow this test to work and | 202 | def test_qemu_can_boot_nfs_and_shutdown(self): |
| 203 | # current autobuilder setup does not have this. | ||
| 204 | def disabled_test_qemu_can_boot_nfs_and_shutdown(self): | ||
| 205 | self.assertExists(self.qemuboot_conf) | ||
| 206 | bitbake('meta-ide-support') | ||
| 207 | rootfs_tar = "%s-%s.tar.bz2" % (self.recipe, self.machine) | 203 | rootfs_tar = "%s-%s.tar.bz2" % (self.recipe, self.machine) |
| 208 | rootfs_tar = os.path.join(self.deploy_dir_image, rootfs_tar) | 204 | rootfs_tar = os.path.join(self.deploy_dir_image, rootfs_tar) |
| 209 | self.assertExists(rootfs_tar) | 205 | self.assertExists(rootfs_tar) |
| 210 | tmpdir = tempfile.mkdtemp(prefix='qemu_nfs') | 206 | cmd = "%s %s" % (self.cmd_common, rootfs_tar) |
| 211 | tmpdir_nfs = os.path.join(tmpdir, 'nfs') | ||
| 212 | cmd_extract_nfs = 'runqemu-extract-sdk %s %s' % (rootfs_tar, tmpdir_nfs) | ||
| 213 | result = runCmd(cmd_extract_nfs) | ||
| 214 | self.assertEqual(0, result.status, "runqemu-extract-sdk didn't run as expected. %s" % result.output) | ||
| 215 | cmd = "%s nfs %s %s" % (self.cmd_common, self.qemuboot_conf, tmpdir_nfs) | ||
| 216 | shutdown_timeout = 120 | 207 | shutdown_timeout = 120 |
| 217 | with runqemu(self.recipe, ssh=False, launch_cmd=cmd) as qemu: | 208 | with runqemu(self.recipe, ssh=False, launch_cmd=cmd) as qemu: |
| 218 | qemu_shutdown_succeeded = self._start_qemu_shutdown_check_if_shutdown_succeeded(qemu, shutdown_timeout) | 209 | qemu_shutdown_succeeded = self._start_qemu_shutdown_check_if_shutdown_succeeded(qemu, shutdown_timeout) |
| 219 | self.assertTrue(qemu_shutdown_succeeded, 'Failed: %s does not shutdown within timeout(%s)' % (self.machine, shutdown_timeout)) | 210 | self.assertTrue(qemu_shutdown_succeeded, 'Failed: %s does not shutdown within timeout(%s)' % (self.machine, shutdown_timeout)) |
| 220 | runCmd('rm -rf %s' % tmpdir) | ||
