mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
bitbake: bb/tests: use subtests when looping in a test case
Marking the test iterations as subtests means that when one fails, it can identify clearly which iteration has failed. (Bitbake rev: 52c55e681332d7cdbe06f3c9d9c8d77cb0cb93f6) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
3233f3b231
commit
c3fc67960e
|
@ -1534,6 +1534,7 @@ class FetchLatestVersionTest(FetcherTest):
|
|||
@skipIfNoNetwork()
|
||||
def test_git_latest_versionstring(self):
|
||||
for k, v in self.test_git_uris.items():
|
||||
with self.subTest(pn=k[0]):
|
||||
self.d.setVar("PN", k[0])
|
||||
self.d.setVar("SRCREV", k[2])
|
||||
self.d.setVar("UPSTREAM_CHECK_GITTAGREGEX", k[3])
|
||||
|
@ -1554,6 +1555,7 @@ class FetchLatestVersionTest(FetcherTest):
|
|||
port = server.port
|
||||
try:
|
||||
for k, v in self.test_wget_uris.items():
|
||||
with self.subTest(pn=k[0]):
|
||||
self.d.setVar("PN", k[0])
|
||||
checkuri = ""
|
||||
if k[2]:
|
||||
|
@ -1573,6 +1575,7 @@ class FetchLatestVersionTest(FetcherTest):
|
|||
@skipIfNoNetwork()
|
||||
def test_crate_latest_versionstring(self):
|
||||
for k, v in self.test_crate_uris.items():
|
||||
with self.subTest(pn=k[0]):
|
||||
self.d.setVar("PN", k[0])
|
||||
ud = bb.fetch2.FetchData(k[1], self.d)
|
||||
pupver = ud.method.latest_versionstring(ud, self.d)
|
||||
|
|
Loading…
Reference in New Issue
Block a user