From: Alex Kiernan Date: Fri, 29 Dec 2023 11:44:26 +0000 (+0000) Subject: devtool: selftest: Fix test_devtool_modify_git_crates_subpath inequality X-Git-Tag: uninative-4.4~600 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a8d03db55e6a1b07a8585cbf5fbf735ec51f4a7;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git 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. Signed-off-by: Alex Kiernan Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/selftest/cases/devtool.py b/meta/lib/oeqa/selftest/cases/devtool.py index 47353dadff9..d733dd15810 100644 --- a/meta/lib/oeqa/selftest/cases/devtool.py +++ b/meta/lib/oeqa/selftest/cases/devtool.py @@ -940,7 +940,7 @@ class DevtoolModifyTests(DevtoolBase): 'This test expects the %s recipe to have a git uri with subpath' % testrecipe) self.assertTrue(any([uri.startswith('crate://') for uri in src_uri]), 'This test expects the %s recipe to have some crates in its src uris' % testrecipe) - self.assertGreater(sum(map(lambda x:x.startswith('git://'), src_uri)), 2, + self.assertGreaterEqual(sum(map(lambda x:x.startswith('git://'), src_uri)), 2, 'This test expects the %s recipe to have several git:// uris' % testrecipe) self.assertTrue(any([uri.startswith('file://') and '.patch' in uri for uri in src_uri]), 'This test expects the %s recipe to have a patch in its src uris' % testrecipe)