summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoey Degges <jdegges@gmail.com>2021-01-04 21:08:42 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-01-08 10:11:42 +0000
commitd5c4cd6a0b50c87a686c9e560f1b4d7c4446bc1e (patch)
tree82bdd81559f147bc8b177b04bcf468c16ffc3f47
parent54f4968f36dcabae28ac0414f5b9428d361c60fa (diff)
downloadpoky-d5c4cd6a0b50c87a686c9e560f1b4d7c4446bc1e.tar.gz
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 <jdegges@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/tests/fetch.py4
1 files changed, 4 insertions, 0 deletions
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):
871 871
872 @skipIfNoNetwork() 872 @skipIfNoNetwork()
873 def test_gitfetch_usehead(self): 873 def test_gitfetch_usehead(self):
874 # Since self.gitfetcher() sets SRCREV we expect this to override
875 # `usehead=1' and instead fetch the specified SRCREV. See
876 # test_local_gitfetch_usehead() for a positive use of the usehead
877 # feature.
874 url = "git://git.openembedded.org/bitbake;usehead=1" 878 url = "git://git.openembedded.org/bitbake;usehead=1"
875 self.assertRaises(bb.fetch.ParameterError, self.gitfetcher, url, url) 879 self.assertRaises(bb.fetch.ParameterError, self.gitfetcher, url, url)
876 880