summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2023-12-29 11:44:26 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-12-30 11:03:07 +0000
commitf87f7e1b8c5cafc0a87c16efb985e32b183d9917 (patch)
tree00b4e361a146c5b6bbd8ca6e0ddfe284f97e8811
parent85d3de0b8aab0043d08ff4d8a7d08cc21e6c0134 (diff)
downloadpoky-f87f7e1b8c5cafc0a87c16efb985e32b183d9917.tar.gz
devtool: selftest: Fix test_devtool_modify_git_crates_subpath inequality
test_devtool_modify_git_crates_subpath expects 2 or more git URIs, change the test from Greater to GreateEqual. (From OE-Core rev: 4a8d03db55e6a1b07a8585cbf5fbf735ec51f4a7) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/selftest/cases/devtool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/devtool.py b/meta/lib/oeqa/selftest/cases/devtool.py
index 47353dadff..d733dd1581 100644
--- a/meta/lib/oeqa/selftest/cases/devtool.py
+++ b/meta/lib/oeqa/selftest/cases/devtool.py
@@ -940,7 +940,7 @@ class DevtoolModifyTests(DevtoolBase):
940 'This test expects the %s recipe to have a git uri with subpath' % testrecipe) 940 'This test expects the %s recipe to have a git uri with subpath' % testrecipe)
941 self.assertTrue(any([uri.startswith('crate://') for uri in src_uri]), 941 self.assertTrue(any([uri.startswith('crate://') for uri in src_uri]),
942 'This test expects the %s recipe to have some crates in its src uris' % testrecipe) 942 'This test expects the %s recipe to have some crates in its src uris' % testrecipe)
943 self.assertGreater(sum(map(lambda x:x.startswith('git://'), src_uri)), 2, 943 self.assertGreaterEqual(sum(map(lambda x:x.startswith('git://'), src_uri)), 2,
944 'This test expects the %s recipe to have several git:// uris' % testrecipe) 944 'This test expects the %s recipe to have several git:// uris' % testrecipe)
945 self.assertTrue(any([uri.startswith('file://') and '.patch' in uri for uri in src_uri]), 945 self.assertTrue(any([uri.startswith('file://') and '.patch' in uri for uri in src_uri]),
946 'This test expects the %s recipe to have a patch in its src uris' % testrecipe) 946 'This test expects the %s recipe to have a patch in its src uris' % testrecipe)