mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 21:32:12 +02:00
bitbake: tests/fetch: Update after recent gitsm message changes
Also use assetIn instead of assertTrue which aids debugging failures. (Bitbake rev: 7e9c0bffb95ca92cab61deeeef18f45f1b4edb6f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -1708,9 +1708,8 @@ class GitShallowTest(FetcherTest):
|
||||
with self.assertRaises(bb.fetch2.UnpackError) as context:
|
||||
fetcher.unpack(self.d.getVar('WORKDIR'))
|
||||
|
||||
self.assertTrue("No up to date source found" in context.exception.msg)
|
||||
self.assertTrue("clone directory not available or not up to date" in context.exception.msg)
|
||||
self.assertTrue("shallow clone not enabled or not available" in context.exception.msg)
|
||||
self.assertIn("No up to date source found", context.exception.msg)
|
||||
self.assertIn("clone directory not available or not up to date", context.exception.msg)
|
||||
|
||||
@skipIfNoNetwork()
|
||||
def test_that_unpack_does_work_when_using_git_shallow_tarball_but_tarball_is_not_available(self):
|
||||
|
||||
Reference in New Issue
Block a user