summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2022-11-28 11:46:33 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-11-29 10:29:58 +0000
commit49d114e33e3f4eb2583c54edb0b04bb0328a1353 (patch)
treea49a01b5fcff5d96f6bda8c84086d6e24ba2df80 /meta/lib/oeqa
parent18fc5fb41aa673be646e7863be577f60b069e8af (diff)
downloadpoky-49d114e33e3f4eb2583c54edb0b04bb0328a1353.tar.gz
selftest/runqemu: reenable the nfs rootfs test
With the previous fixes the test can be run again, and it doesn't need all those extra steps. Runqemu takes care of everything automatically now. (From OE-Core rev: 99083d01bd576eee7c2c569c66042d064c193a9a) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r--meta/lib/oeqa/selftest/cases/runqemu.py14
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)