diff options
-rw-r--r-- | meta/lib/oeqa/selftest/cases/wic.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeqa/selftest/cases/wic.py index 317b80ea27..eb376e1e2c 100644 --- a/meta/lib/oeqa/selftest/cases/wic.py +++ b/meta/lib/oeqa/selftest/cases/wic.py | |||
@@ -1337,21 +1337,23 @@ class Wic2(WicTestCase): | |||
1337 | self.assertEqual(1, len(images)) | 1337 | self.assertEqual(1, len(images)) |
1338 | 1338 | ||
1339 | sysroot = get_bb_var('RECIPE_SYSROOT_NATIVE', 'wic-tools') | 1339 | sysroot = get_bb_var('RECIPE_SYSROOT_NATIVE', 'wic-tools') |
1340 | # Not bulletproof but hopefully sufficient | ||
1341 | kerneltype = get_bb_var('KERNEL_IMAGETYPE', 'virtual/kernel') | ||
1340 | 1342 | ||
1341 | # list directory content of the first partition | 1343 | # list directory content of the first partition |
1342 | result = runCmd("wic ls %s:1 -n %s" % (images[0], sysroot)) | 1344 | result = runCmd("wic ls %s:1 -n %s" % (images[0], sysroot)) |
1343 | self.assertIn('\nBZIMAGE ', result.output) | 1345 | self.assertIn('\n%s ' % kerneltype.upper(), result.output) |
1344 | self.assertIn('\nEFI <DIR> ', result.output) | 1346 | self.assertIn('\nEFI <DIR> ', result.output) |
1345 | 1347 | ||
1346 | # remove file | 1348 | # remove file. EFI partitions are case-insensitive so exercise that too |
1347 | runCmd("wic rm %s:1/bzimage -n %s" % (images[0], sysroot)) | 1349 | runCmd("wic rm %s:1/%s -n %s" % (images[0], kerneltype.lower(), sysroot)) |
1348 | 1350 | ||
1349 | # remove directory | 1351 | # remove directory |
1350 | runCmd("wic rm %s:1/efi -n %s" % (images[0], sysroot)) | 1352 | runCmd("wic rm %s:1/efi -n %s" % (images[0], sysroot)) |
1351 | 1353 | ||
1352 | # check if they're removed | 1354 | # check if they're removed |
1353 | result = runCmd("wic ls %s:1 -n %s" % (images[0], sysroot)) | 1355 | result = runCmd("wic ls %s:1 -n %s" % (images[0], sysroot)) |
1354 | self.assertNotIn('\nBZIMAGE ', result.output) | 1356 | self.assertNotIn('\n%s ' % kerneltype.upper(), result.output) |
1355 | self.assertNotIn('\nEFI <DIR> ', result.output) | 1357 | self.assertNotIn('\nEFI <DIR> ', result.output) |
1356 | 1358 | ||
1357 | def test_mkfs_extraopts(self): | 1359 | def test_mkfs_extraopts(self): |