[oe-commits] [bitbake] branch master updated: tests/fetch: Update after recent gitsm message changes
git at git.openembedded.org
git at git.openembedded.org
Thu Nov 22 12:02:27 UTC 2018
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master
in repository bitbake.
The following commit(s) were added to refs/heads/master by this push:
new 19dee67 tests/fetch: Update after recent gitsm message changes
19dee67 is described below
commit 19dee675bb9ad012d28e1e57a888931355a831cb
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Thu Nov 22 11:59:58 2018 +0000
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 at linuxfoundation.org>
---
lib/bb/tests/fetch.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lib/bb/tests/fetch.py b/lib/bb/tests/fetch.py
index 17909ec..6848095 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):
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list