diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2015-02-13 15:58:14 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-16 09:13:06 +0000 |
commit | 6ae933b75c1c34a9d39e1aff0a0cb26a7ce4677f (patch) | |
tree | 4b826a76718333bfba5b194fead837b657441940 /bitbake/lib | |
parent | 1c1d9e3bebf5afeff2b6d8076557d509707e695f (diff) | |
download | poky-6ae933b75c1c34a9d39e1aff0a0cb26a7ce4677f.tar.gz |
bitbake: tests/fetch.py: latest_versionstring add set of PN
Add set of PN in data because now latest_versionstring use it for
validate version directory searching.
(Bitbake rev: 2e4a03db967ac1459b2764108fc54c4566a7e371)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/tests/fetch.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py index 6eb0f2dc18..d56ef49948 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py | |||
@@ -629,6 +629,7 @@ class FetchMethodTest(FetcherTest): | |||
629 | else: | 629 | else: |
630 | def test_git_latest_versionstring(self): | 630 | def test_git_latest_versionstring(self): |
631 | for k, v in self.test_git_uris.items(): | 631 | for k, v in self.test_git_uris.items(): |
632 | self.d.setVar("PN", k[0]) | ||
632 | self.d.setVar("SRCREV", k[2]) | 633 | self.d.setVar("SRCREV", k[2]) |
633 | self.d.setVar("GITTAGREGEX", k[3]) | 634 | self.d.setVar("GITTAGREGEX", k[3]) |
634 | ud = bb.fetch2.FetchData(k[1], self.d) | 635 | ud = bb.fetch2.FetchData(k[1], self.d) |
@@ -638,6 +639,7 @@ class FetchMethodTest(FetcherTest): | |||
638 | 639 | ||
639 | def test_wget_latest_versionstring(self): | 640 | def test_wget_latest_versionstring(self): |
640 | for k, v in self.test_wget_uris.items(): | 641 | for k, v in self.test_wget_uris.items(): |
642 | self.d.setVar("PN", k[0]) | ||
641 | self.d.setVar("REGEX_URI", k[2]) | 643 | self.d.setVar("REGEX_URI", k[2]) |
642 | self.d.setVar("REGEX", k[3]) | 644 | self.d.setVar("REGEX", k[3]) |
643 | ud = bb.fetch2.FetchData(k[1], self.d) | 645 | ud = bb.fetch2.FetchData(k[1], self.d) |