summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/tests
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2015-07-14 19:30:58 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-22 08:23:50 +0100
commit22d2f7b1caf3d1a05b814df5e01e630ccb839e46 (patch)
treee184bb1344d1d368374a006dd1dd46d491c859e0 /bitbake/lib/bb/tests
parentbd5167d154ac04dbecbda3a157ae8ef6304e0b4e (diff)
downloadpoky-22d2f7b1caf3d1a05b814df5e01e630ccb839e46.tar.gz
bitbake: fetch2/wget.py: latest_versionstring now returns (version, revision)
Now latest_versionstring method returns (version, revision) for comply the new return convention needed by SCM's like git get the current revision. bb/tests/fetch.py: Updated wget latest_versionstring test for comply new convention. [YOCTO #7605] (Bitbake rev: 8d454646cbe1b04758ca178d8c6fcfd02b818b7b) 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/bb/tests')
-rw-r--r--bitbake/lib/bb/tests/fetch.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py
index 8dd8ddb071..bfa31d02ae 100644
--- a/bitbake/lib/bb/tests/fetch.py
+++ b/bitbake/lib/bb/tests/fetch.py
@@ -708,7 +708,8 @@ class FetchMethodTest(FetcherTest):
708 self.d.setVar("REGEX_URI", k[2]) 708 self.d.setVar("REGEX_URI", k[2])
709 self.d.setVar("REGEX", k[3]) 709 self.d.setVar("REGEX", k[3])
710 ud = bb.fetch2.FetchData(k[1], self.d) 710 ud = bb.fetch2.FetchData(k[1], self.d)
711 verstring = ud.method.latest_versionstring(ud, self.d) 711 pupver = ud.method.latest_versionstring(ud, self.d)
712 verstring = pupver[0]
712 r = bb.utils.vercmp_string(v, verstring) 713 r = bb.utils.vercmp_string(v, verstring)
713 self.assertTrue(r == -1 or r == 0, msg="Package %s, version: %s <= %s" % (k[0], v, verstring)) 714 self.assertTrue(r == -1 or r == 0, msg="Package %s, version: %s <= %s" % (k[0], v, verstring))
714 715