From d5c4cd6a0b50c87a686c9e560f1b4d7c4446bc1e Mon Sep 17 00:00:00 2001 From: Joey Degges Date: Mon, 4 Jan 2021 21:08:42 -0800 Subject: bitbake: tests/fetch: Document behavior of test_gitfetch_usehead The test `test_gitfetch_usehead' exercises a way to override the usehead feature by setting SRCREV. It may not be obvious that this is what is being exercised here so let's add some comments to document the expected behavior. (Bitbake rev: 1cd998c19101e3b093e81c126b3048c5d56058b0) Signed-off-by: Joey Degges Signed-off-by: Richard Purdie --- bitbake/lib/bb/tests/fetch.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bitbake/lib/bb') diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py index 1323ac2cd3..971c613ddd 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py @@ -871,6 +871,10 @@ class FetcherNetworkTest(FetcherTest): @skipIfNoNetwork() def test_gitfetch_usehead(self): + # Since self.gitfetcher() sets SRCREV we expect this to override + # `usehead=1' and instead fetch the specified SRCREV. See + # test_local_gitfetch_usehead() for a positive use of the usehead + # feature. url = "git://git.openembedded.org/bitbake;usehead=1" self.assertRaises(bb.fetch.ParameterError, self.gitfetcher, url, url) -- cgit v1.2.3-54-g00ecf