diff options
-rw-r--r-- | meta/lib/oeqa/selftest/cases/wic.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeqa/selftest/cases/wic.py index 6f3dc27743..673942fc9c 100644 --- a/meta/lib/oeqa/selftest/cases/wic.py +++ b/meta/lib/oeqa/selftest/cases/wic.py | |||
@@ -1416,8 +1416,8 @@ class Wic2(WicTestCase): | |||
1416 | result = runCmd("%s/usr/sbin/sfdisk -F %s" % (sysroot, new_image_path)) | 1416 | result = runCmd("%s/usr/sbin/sfdisk -F %s" % (sysroot, new_image_path)) |
1417 | self.assertTrue("0 B, 0 bytes, 0 sectors" in result.output) | 1417 | self.assertTrue("0 B, 0 bytes, 0 sectors" in result.output) |
1418 | 1418 | ||
1419 | bb.utils.rename(image_path, image_path + '.bak') | 1419 | os.rename(image_path, image_path + '.bak') |
1420 | bb.utils.rename(new_image_path, image_path) | 1420 | os.rename(new_image_path, image_path) |
1421 | 1421 | ||
1422 | # Check if it boots in qemu | 1422 | # Check if it boots in qemu |
1423 | with runqemu('core-image-minimal', ssh=False, runqemuparams='nographic') as qemu: | 1423 | with runqemu('core-image-minimal', ssh=False, runqemuparams='nographic') as qemu: |
@@ -1428,7 +1428,8 @@ class Wic2(WicTestCase): | |||
1428 | if os.path.exists(new_image_path): | 1428 | if os.path.exists(new_image_path): |
1429 | os.unlink(new_image_path) | 1429 | os.unlink(new_image_path) |
1430 | if os.path.exists(image_path + '.bak'): | 1430 | if os.path.exists(image_path + '.bak'): |
1431 | bb.utils.rename(image_path + '.bak', image_path) | 1431 | os.rename(image_path + '.bak', image_path) |
1432 | |||
1432 | 1433 | ||
1433 | def test_wic_ls_ext(self): | 1434 | def test_wic_ls_ext(self): |
1434 | """Test listing content of the ext partition using 'wic ls'""" | 1435 | """Test listing content of the ext partition using 'wic ls'""" |