[oe-commits] [bitbake] 02/02: tests/fetch: fix GitShallowTest.test_bitbake

git at git.openembedded.org git at git.openembedded.org
Fri Jul 28 22:25:40 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit 777e78a3937c38297e557ebbffb6f5a1ba5a58b0
Author: Christopher Larson <chris_larson at mentor.com>
AuthorDate: Fri Jul 28 13:47:53 2017 -0600

    tests/fetch: fix GitShallowTest.test_bitbake
    
    `git fetch --tags` seems to interact badly with `mirror=fetch`, resulting in
    the regular branches not being fetched, so drop the unnecessary `--tags`. This
    fixes this unit test failure: `bb.fetch2.FetchError: Fetcher failure: Unable
    to resolve 'master' in upstream git repository in git ls-remote output for
    /tmp/tmp4ag_mgmn/gitsource`
    
    [YOCTO #11698]
    
    Signed-off-by: Christopher Larson <chris_larson at mentor.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/tests/fetch.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/tests/fetch.py b/lib/bb/tests/fetch.py
index 343ae8f..faa5c74 100644
--- a/lib/bb/tests/fetch.py
+++ b/lib/bb/tests/fetch.py
@@ -1440,7 +1440,7 @@ class GitShallowTest(FetcherTest):
         def test_bitbake(self):
             self.git('remote add --mirror=fetch origin git://github.com/openembedded/bitbake', cwd=self.srcdir)
             self.git('config core.bare true', cwd=self.srcdir)
-            self.git('fetch --tags', cwd=self.srcdir)
+            self.git('fetch', cwd=self.srcdir)
 
             self.d.setVar('BB_GIT_SHALLOW_DEPTH', '0')
             # Note that the 1.10.0 tag is annotated, so this also tests

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list