aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2018-01-19 11:17:14 +0800
committerRobert Yang <liezhi.yang@windriver.com>2018-02-05 12:45:38 +0800
commitb42cbcede1f5e94ae1d92196ee635a306dbb74a9 (patch)
tree78bd867c5edab050b52e0f17248fb1d9f9358591
parentbbb0932fda3d02648cc99596eef004d9f1025c4d (diff)
downloadopenembedded-core-contrib-rbt/json.zip
openembedded-core-contrib-rbt/json.tar.gz
openembedded-core-contrib-rbt/json.tar.bz2
selftest/cases/runqemu.py: qemuboot.conf -> qemuboot.jsonrbt/json
[YOCTO #12503] Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
-rw-r--r--meta/lib/oeqa/selftest/cases/runqemu.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/lib/oeqa/selftest/cases/runqemu.py b/meta/lib/oeqa/selftest/cases/runqemu.py
index 47d41f5..cfeb224 100644
--- a/meta/lib/oeqa/selftest/cases/runqemu.py
+++ b/meta/lib/oeqa/selftest/cases/runqemu.py
@@ -117,12 +117,12 @@ SYSLINUX_TIMEOUT = "10"
@OETestID(2010)
def test_boot_qemu_boot(self):
- """Test runqemu /path/to/image.qemuboot.conf"""
- qemuboot_conf = "%s-%s.qemuboot.conf" % (self.recipe, self.machine)
- qemuboot_conf = os.path.join(self.deploy_dir_image, qemuboot_conf)
- if not os.path.exists(qemuboot_conf):
- self.skipTest("%s not found" % qemuboot_conf)
- cmd = "%s %s" % (self.cmd_common, qemuboot_conf)
+ """Test runqemu /path/to/image.qemuboot.json"""
+ qb_json = "%s-%s.qemuboot.json" % (self.recipe, self.machine)
+ qb_json = os.path.join(self.deploy_dir_image, qb_json)
+ if not os.path.exists(qb_json):
+ self.skipTest("%s not found" % qb_json)
+ cmd = "%s %s" % (self.cmd_common, qb_json)
with runqemu(self.recipe, ssh=False, launch_cmd=cmd) as qemu:
self.assertTrue(qemu.runner.logged, "Failed: %s" % cmd)