diff options
author | Ross Burton <ross.burton@intel.com> | 2017-09-29 17:10:16 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-08 22:24:03 +0000 |
commit | 5239691cc92679609cb464c55a7435d9cd9de349 (patch) | |
tree | d5465cf69d9f7473d75e14dce72af47c861125bb /meta/lib/oeqa/selftest | |
parent | 51b3c38b5d5d80c3acf5d2477db38b08803c8883 (diff) | |
download | poky-5239691cc92679609cb464c55a7435d9cd9de349.tar.gz |
selftest/imagefeatures: add basic test for useradd-staticids
(From OE-Core rev: 468079140c1f19096bbc628663462beebc194800)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/imagefeatures.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/imagefeatures.py b/meta/lib/oeqa/selftest/cases/imagefeatures.py index 1a850008ef..2ca66d0cf3 100644 --- a/meta/lib/oeqa/selftest/cases/imagefeatures.py +++ b/meta/lib/oeqa/selftest/cases/imagefeatures.py | |||
@@ -226,3 +226,13 @@ class ImageFeatures(OESelftestTestCase): | |||
226 | # check if result image is in deploy directory | 226 | # check if result image is in deploy directory |
227 | self.assertTrue(os.path.exists(image_path), | 227 | self.assertTrue(os.path.exists(image_path), |
228 | "%s image %s doesn't exist" % (itype, image_path)) | 228 | "%s image %s doesn't exist" % (itype, image_path)) |
229 | |||
230 | def test_useradd_static(self): | ||
231 | config = """ | ||
232 | USERADDEXTENSION = "useradd-staticids" | ||
233 | USERADD_ERROR_DYNAMIC = "skip" | ||
234 | USERADD_UID_TABLES += "files/static-passwd" | ||
235 | USERADD_GID_TABLES += "files/static-group" | ||
236 | """ | ||
237 | self.write_config(config) | ||
238 | bitbake("core-image-base") | ||