summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
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-22 12:01:59 +0000
commit0c5e19c96d77db139206b58a8aaa960b38009452 (patch)
treeaae904b0204aa67fa1ef6bbb01b41beb20d36ff4 /bitbake/lib
parente3e88600ced72ebfd21ea96084684351c721c47f (diff)
downloadopenembedded-core-contrib-0c5e19c96d77db139206b58a8aaa960b38009452.tar.gz
bitbake: tests/fetch: Update after recent gitsm message changes
Also use assetIn instead of assertTrue which aids debugging failures. (Bitbake rev: 19dee675bb9ad012d28e1e57a888931355a831cb) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-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):
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):