diff options
author | Ross Burton <ross.burton@arm.com> | 2025-03-26 12:25:22 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-27 13:40:31 +0000 |
commit | 58c015cdd766452732af1dfde52eab2278fc0bbe (patch) | |
tree | e35d9a45c747aa39e84d95fe7a80c104d3c7e5e2 /bitbake | |
parent | 63246241f91518267cd9a44ab7b2594a0b934e66 (diff) | |
download | poky-58c015cdd766452732af1dfde52eab2278fc0bbe.tar.gz |
bitbake: tests/fetch: support setting PV in the wget fetcher
Some code paths in latest_versionstring() need PV to be set correctly.
(Bitbake rev: 0a9f90ff658e09feda63b398ec35715a65ff6193)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/tests/fetch.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py index 40249738aa..8eb0dfe9a1 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py | |||
@@ -1472,7 +1472,7 @@ class FetchLatestVersionTest(FetcherTest): | |||
1472 | : "0.28.0", | 1472 | : "0.28.0", |
1473 | } | 1473 | } |
1474 | 1474 | ||
1475 | WgetTestData = collections.namedtuple("WgetTestData", ["pn", "path", "check_uri", "check_regex"], defaults=[None, None]) | 1475 | WgetTestData = collections.namedtuple("WgetTestData", ["pn", "path", "pv", "check_uri", "check_regex"], defaults=[None, None, None]) |
1476 | test_wget_uris = { | 1476 | test_wget_uris = { |
1477 | # | 1477 | # |
1478 | # packages with versions inside directory name | 1478 | # packages with versions inside directory name |
@@ -1558,6 +1558,7 @@ class FetchLatestVersionTest(FetcherTest): | |||
1558 | for data, v in self.test_wget_uris.items(): | 1558 | for data, v in self.test_wget_uris.items(): |
1559 | with self.subTest(pn=data.pn): | 1559 | with self.subTest(pn=data.pn): |
1560 | self.d.setVar("PN", data.pn) | 1560 | self.d.setVar("PN", data.pn) |
1561 | self.d.setVar("PV", data.pv) | ||
1561 | if data.check_uri: | 1562 | if data.check_uri: |
1562 | checkuri = "http://127.0.0.1:%s/%s" % (port, data.check_uri) | 1563 | checkuri = "http://127.0.0.1:%s/%s" % (port, data.check_uri) |
1563 | self.d.setVar("UPSTREAM_CHECK_URI", checkuri) | 1564 | self.d.setVar("UPSTREAM_CHECK_URI", checkuri) |