diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-04 17:06:05 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-05 11:07:25 +0100 |
commit | 1285f78ce861a92dbb99f476b49499574259e615 (patch) | |
tree | 7158a1c6d29be4ef9a6bba68a5d4f098aa947f3c /meta/lib/oeqa/selftest/cases/recipetool.py | |
parent | 3a89e9a056a946c03083d3cb8e5870ed67b1b99c (diff) | |
download | poky-1285f78ce861a92dbb99f476b49499574259e615.tar.gz |
recipes: Default to https git protocol where possible
The recommendation from server maintainers is that the https protocol
is both faster and more reliable than the dedicated git protocol at this point.
Switch to it where possible.
(From OE-Core rev: 139102a73d4151f4748b4a861bd4ab28dda7dab7)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/recipetool.py')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/recipetool.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/lib/oeqa/selftest/cases/recipetool.py b/meta/lib/oeqa/selftest/cases/recipetool.py index b193f0f5c8..a5c0f7164a 100644 --- a/meta/lib/oeqa/selftest/cases/recipetool.py +++ b/meta/lib/oeqa/selftest/cases/recipetool.py | |||
@@ -361,7 +361,7 @@ class RecipetoolCreateTests(RecipetoolBase): | |||
361 | tempsrc = os.path.join(self.tempdir, 'srctree') | 361 | tempsrc = os.path.join(self.tempdir, 'srctree') |
362 | os.makedirs(tempsrc) | 362 | os.makedirs(tempsrc) |
363 | recipefile = os.path.join(self.tempdir, 'libmatchbox.bb') | 363 | recipefile = os.path.join(self.tempdir, 'libmatchbox.bb') |
364 | srcuri = 'git://git.yoctoproject.org/libmatchbox' | 364 | srcuri = 'git://git.yoctoproject.org/libmatchbox;protocol=https' |
365 | result = runCmd(['recipetool', 'create', '-o', recipefile, srcuri + ";rev=9f7cf8895ae2d39c465c04cc78e918c157420269", '-x', tempsrc]) | 365 | result = runCmd(['recipetool', 'create', '-o', recipefile, srcuri + ";rev=9f7cf8895ae2d39c465c04cc78e918c157420269", '-x', tempsrc]) |
366 | self.assertTrue(os.path.isfile(recipefile), 'recipetool did not create recipe file; output:\n%s' % result.output) | 366 | self.assertTrue(os.path.isfile(recipefile), 'recipetool did not create recipe file; output:\n%s' % result.output) |
367 | checkvars = {} | 367 | checkvars = {} |
@@ -511,13 +511,13 @@ class RecipetoolCreateTests(RecipetoolBase): | |||
511 | self._test_recipetool_create_git('http://git.yoctoproject.org/git/matchbox-keyboard') | 511 | self._test_recipetool_create_git('http://git.yoctoproject.org/git/matchbox-keyboard') |
512 | 512 | ||
513 | def test_recipetool_create_git_srcuri_master(self): | 513 | def test_recipetool_create_git_srcuri_master(self): |
514 | self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard;branch=master') | 514 | self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard;branch=master;protocol=https') |
515 | 515 | ||
516 | def test_recipetool_create_git_srcuri_branch(self): | 516 | def test_recipetool_create_git_srcuri_branch(self): |
517 | self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard;branch=matchbox-keyboard-0-1') | 517 | self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard;branch=matchbox-keyboard-0-1;protocol=https') |
518 | 518 | ||
519 | def test_recipetool_create_git_srcbranch(self): | 519 | def test_recipetool_create_git_srcbranch(self): |
520 | self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard', 'matchbox-keyboard-0-1') | 520 | self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard;protocol=https', 'matchbox-keyboard-0-1') |
521 | 521 | ||
522 | 522 | ||
523 | class RecipetoolTests(RecipetoolBase): | 523 | class RecipetoolTests(RecipetoolBase): |