summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases/wic.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/wic.py')
-rw-r--r--meta/lib/oeqa/selftest/cases/wic.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeqa/selftest/cases/wic.py
index 0b0ca90c1e..d479343773 100644
--- a/meta/lib/oeqa/selftest/cases/wic.py
+++ b/meta/lib/oeqa/selftest/cases/wic.py
@@ -1352,14 +1352,15 @@ class Wic2(WicTestCase):
1352 """Test --part-name argument to set partition name in GPT table""" 1352 """Test --part-name argument to set partition name in GPT table"""
1353 config = 'IMAGE_FSTYPES += "wic"\nWKS_FILE = "test_gpt_partition_name.wks"\n' 1353 config = 'IMAGE_FSTYPES += "wic"\nWKS_FILE = "test_gpt_partition_name.wks"\n'
1354 self.append_config(config) 1354 self.append_config(config)
1355 bitbake('core-image-minimal') 1355 image = 'core-image-minimal'
1356 bitbake(image)
1356 self.remove_config(config) 1357 self.remove_config(config)
1357 deploy_dir = get_bb_var('DEPLOY_DIR_IMAGE') 1358 deploy_dir = get_bb_var('DEPLOY_DIR_IMAGE')
1358 machine = self.td['MACHINE'] 1359 bb_vars = get_bb_vars(['DEPLOY_DIR_IMAGE', 'IMAGE_LINK_NAME'], image)
1360 image_path = os.path.join(bb_vars['DEPLOY_DIR_IMAGE'], '%s.wic' % bb_vars['IMAGE_LINK_NAME'])
1359 1361
1360 image_path = os.path.join(deploy_dir, 'core-image-minimal-%s.wic' % machine)
1361 # Image is created 1362 # Image is created
1362 self.assertTrue(os.path.exists(image_path)) 1363 self.assertTrue(os.path.exists(image_path), "image file %s doesn't exist" % image_path)
1363 1364
1364 # Check the names of the three partitions 1365 # Check the names of the three partitions
1365 # as listed in test_gpt_partition_name.wks 1366 # as listed in test_gpt_partition_name.wks