diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-22 11:59:58 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-22 12:01:52 +0000 |
commit | 19dee675bb9ad012d28e1e57a888931355a831cb (patch) | |
tree | 713c5d979da01e28aa9fe41b837faffc0a3ec665 /lib/bb/tests/fetch.py | |
parent | bdbb558342ebb4e64384c9838d2485d9299d91a6 (diff) | |
download | bitbake-contrib-19dee675bb9ad012d28e1e57a888931355a831cb.tar.gz |
tests/fetch: Update after recent gitsm message changes
Also use assetIn instead of assertTrue which aids debugging failures.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/tests/fetch.py')
-rw-r--r-- | lib/bb/tests/fetch.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/bb/tests/fetch.py b/lib/bb/tests/fetch.py index 17909ec62..6848095cf 100644 --- a/lib/bb/tests/fetch.py +++ b/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): |