diff options
author | Fawzi KHABER <fawzi.khaber@smile.fr> | 2023-03-29 10:57:57 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-30 12:32:30 +0100 |
commit | 3ae3669468c133e5cd26120e7ee2d82bcaad8b56 (patch) | |
tree | a3dcdaf5c879ab6009a1e62aa8ee3a310c2b8afb /meta/lib/oeqa/selftest/cases/package.py | |
parent | b8486ffe807d08ae6f2c577295c249afc7aca3f1 (diff) | |
download | poky-3ae3669468c133e5cd26120e7ee2d82bcaad8b56.tar.gz |
oeqa/selftest/cases/package.py: adding unittest for package rename conflicts
This Unittest tries to rename a package, using an already used name and
fails on do_package.
Reviewed-by: Yoann CONGAL <yoann.congal@smile.fr>
(From OE-Core rev: c3fe173d5196506d89aa464ba56aabcf581a60db)
Signed-off-by: Fawzi KHABER <fawzi.khaber@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/package.py')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/package.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/package.py b/meta/lib/oeqa/selftest/cases/package.py index 4f7cd10658..1aa6c03f8a 100644 --- a/meta/lib/oeqa/selftest/cases/package.py +++ b/meta/lib/oeqa/selftest/cases/package.py | |||
@@ -89,6 +89,13 @@ class VersionOrdering(OESelftestTestCase): | |||
89 | self.assertEqual(status - 100, sort, "%s %s (%d) failed" % (ver1, ver2, sort)) | 89 | self.assertEqual(status - 100, sort, "%s %s (%d) failed" % (ver1, ver2, sort)) |
90 | 90 | ||
91 | class PackageTests(OESelftestTestCase): | 91 | class PackageTests(OESelftestTestCase): |
92 | # Verify that a recipe cannot rename a package into an existing one | ||
93 | def test_package_name_conflict(self): | ||
94 | res = bitbake("packagenameconflict", ignore_status=True) | ||
95 | self.assertNotEqual(res.status, 0) | ||
96 | err = "package name already exists" | ||
97 | self.assertTrue(err in res.output) | ||
98 | |||
92 | # Verify that a recipe which sets up hardlink files has those preserved into split packages | 99 | # Verify that a recipe which sets up hardlink files has those preserved into split packages |
93 | # Also test file sparseness is preserved | 100 | # Also test file sparseness is preserved |
94 | def test_preserve_sparse_hardlinks(self): | 101 | def test_preserve_sparse_hardlinks(self): |