diff options
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/overlayfs.py | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/meta/lib/oeqa/selftest/cases/overlayfs.py b/meta/lib/oeqa/selftest/cases/overlayfs.py index bff22f21b6..f550015b4b 100644 --- a/meta/lib/oeqa/selftest/cases/overlayfs.py +++ b/meta/lib/oeqa/selftest/cases/overlayfs.py | |||
| @@ -333,24 +333,14 @@ EXTRA_IMAGE_FEATURES += "package-management" | |||
| 333 | self.assertTrue("overlayfs-etc" in res.output, msg=res.output) | 333 | self.assertTrue("overlayfs-etc" in res.output, msg=res.output) |
| 334 | self.assertTrue("package-management" in res.output, msg=res.output) | 334 | self.assertTrue("package-management" in res.output, msg=res.output) |
| 335 | 335 | ||
| 336 | def test_image_feature_is_missing_class_included(self): | ||
| 337 | configAppend = """ | ||
| 338 | INHERIT += "overlayfs-etc" | ||
| 339 | """ | ||
| 340 | self.run_check_image_feature(configAppend) | ||
| 341 | |||
| 342 | def test_image_feature_is_missing(self): | 336 | def test_image_feature_is_missing(self): |
| 343 | self.run_check_image_feature() | ||
| 344 | |||
| 345 | def run_check_image_feature(self, appendToConfig=""): | ||
| 346 | """ | 337 | """ |
| 347 | Summary: Overlayfs-etc class is not applied when image feature is not set | 338 | Summary: Overlayfs-etc class is not applied when image feature is not set |
| 348 | even if we inherit it directly, | ||
| 349 | Expected: Image is created successfully but /etc is not an overlay | 339 | Expected: Image is created successfully but /etc is not an overlay |
| 350 | Author: Vyacheslav Yurkov <uvv.mail@gmail.com> | 340 | Author: Vyacheslav Yurkov <uvv.mail@gmail.com> |
| 351 | """ | 341 | """ |
| 352 | 342 | ||
| 353 | config = f""" | 343 | config = """ |
| 354 | DISTRO_FEATURES:append = " systemd" | 344 | DISTRO_FEATURES:append = " systemd" |
| 355 | 345 | ||
| 356 | # Use systemd as init manager | 346 | # Use systemd as init manager |
| @@ -366,7 +356,6 @@ EXTRA_IMAGE_FEATURES += "read-only-rootfs" | |||
| 366 | # Image configuration for overlayfs-etc | 356 | # Image configuration for overlayfs-etc |
| 367 | OVERLAYFS_ETC_MOUNT_POINT = "/data" | 357 | OVERLAYFS_ETC_MOUNT_POINT = "/data" |
| 368 | OVERLAYFS_ETC_DEVICE = "/dev/sda3" | 358 | OVERLAYFS_ETC_DEVICE = "/dev/sda3" |
| 369 | {appendToConfig} | ||
| 370 | """ | 359 | """ |
| 371 | 360 | ||
| 372 | self.write_config(config) | 361 | self.write_config(config) |
