summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/tests/fetch.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py
index faa5c74aae..209b13f695 100644
--- a/bitbake/lib/bb/tests/fetch.py
+++ b/bitbake/lib/bb/tests/fetch.py
@@ -793,6 +793,7 @@ class FetchLatestVersionTest(FetcherTest):
793 ud = bb.fetch2.FetchData(k[1], self.d) 793 ud = bb.fetch2.FetchData(k[1], self.d)
794 pupver= ud.method.latest_versionstring(ud, self.d) 794 pupver= ud.method.latest_versionstring(ud, self.d)
795 verstring = pupver[0] 795 verstring = pupver[0]
796 self.assertTrue(verstring, msg="Could not find upstream version")
796 r = bb.utils.vercmp_string(v, verstring) 797 r = bb.utils.vercmp_string(v, verstring)
797 self.assertTrue(r == -1 or r == 0, msg="Package %s, version: %s <= %s" % (k[0], v, verstring)) 798 self.assertTrue(r == -1 or r == 0, msg="Package %s, version: %s <= %s" % (k[0], v, verstring))
798 799
@@ -804,6 +805,7 @@ class FetchLatestVersionTest(FetcherTest):
804 ud = bb.fetch2.FetchData(k[1], self.d) 805 ud = bb.fetch2.FetchData(k[1], self.d)
805 pupver = ud.method.latest_versionstring(ud, self.d) 806 pupver = ud.method.latest_versionstring(ud, self.d)
806 verstring = pupver[0] 807 verstring = pupver[0]
808 self.assertTrue(verstring, msg="Could not find upstream version")
807 r = bb.utils.vercmp_string(v, verstring) 809 r = bb.utils.vercmp_string(v, verstring)
808 self.assertTrue(r == -1 or r == 0, msg="Package %s, version: %s <= %s" % (k[0], v, verstring)) 810 self.assertTrue(r == -1 or r == 0, msg="Package %s, version: %s <= %s" % (k[0], v, verstring))
809 811