summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-22 11:59:58 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-26 20:16:24 +0000
commit33e5b9e5adfc941ce65da8161c5cdf81fd1ed6c1 (patch)
treed5a11eaf4bcf24bcbafb4337565735d79025d8af /bitbake
parent8dccbf6752d15615c5b398c637298c058f862bf8 (diff)
downloadpoky-33e5b9e5adfc941ce65da8161c5cdf81fd1ed6c1.tar.gz
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>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/tests/fetch.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py
index 17909ec62c..6848095cfd 100644
--- a/bitbake/lib/bb/tests/fetch.py
+++ b/bitbake/lib/bb/tests/fetch.py
@@ -1708,9 +1708,8 @@ class GitShallowTest(FetcherTest):
1708 with self.assertRaises(bb.fetch2.UnpackError) as context: 1708 with self.assertRaises(bb.fetch2.UnpackError) as context:
1709 fetcher.unpack(self.d.getVar('WORKDIR')) 1709 fetcher.unpack(self.d.getVar('WORKDIR'))
1710 1710
1711 self.assertTrue("No up to date source found" in context.exception.msg) 1711 self.assertIn("No up to date source found", context.exception.msg)
1712 self.assertTrue("clone directory not available or not up to date" in context.exception.msg) 1712 self.assertIn("clone directory not available or not up to date", context.exception.msg)
1713 self.assertTrue("shallow clone not enabled or not available" in context.exception.msg)
1714 1713
1715 @skipIfNoNetwork() 1714 @skipIfNoNetwork()
1716 def test_that_unpack_does_work_when_using_git_shallow_tarball_but_tarball_is_not_available(self): 1715 def test_that_unpack_does_work_when_using_git_shallow_tarball_but_tarball_is_not_available(self):