diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2014-02-24 18:50:05 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-28 14:50:43 +0000 |
commit | c2895edcdd99bf292cf56b65522f879669869724 (patch) | |
tree | 64cc97fb4f8de80bd1a045bb6034fdcbf0f5584c /bitbake/lib/bb/tests/fetch.py | |
parent | 0dd3a1bc1d46c53029a23e3dae87b0572c67c950 (diff) | |
download | ast2050-yocto-poky-c2895edcdd99bf292cf56b65522f879669869724.zip ast2050-yocto-poky-c2895edcdd99bf292cf56b65522f879669869724.tar.gz |
bitbake: tests: add test for gitsm fetcher
Use a newly created "git-submodule-test" repo on git.yoctoproject.org
which currently contains one submodule (the bitbake repository).
(Bitbake rev: a750c57242928c546a5aace632543e956ee908eb)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/tests/fetch.py')
-rw-r--r-- | bitbake/lib/bb/tests/fetch.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py index deb1d37..156da83 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py @@ -417,6 +417,13 @@ class FetcherNetworkTest(FetcherTest): self.d.setVar("PREMIRRORS", "%s git://%s;protocol=file \n" % (dummyurl, self.sourcedir)) self.gitfetcher(dummyurl, dummyurl) + def test_git_submodule(self): + fetcher = bb.fetch.Fetch(["gitsm://git.yoctoproject.org/git-submodule-test;rev=f12e57f2edf0aa534cf1616fa983d165a92b0842"], self.d) + fetcher.download() + # Previous cwd has been deleted + os.chdir(os.path.dirname(self.unpackdir)) + fetcher.unpack(self.unpackdir) + class URLHandle(unittest.TestCase): datatable = { |