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 | |
parent | 0dd3a1bc1d46c53029a23e3dae87b0572c67c950 (diff) | |
download | 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')
-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 deb1d3733b..156da83dec 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py | |||
@@ -417,6 +417,13 @@ class FetcherNetworkTest(FetcherTest): | |||
417 | self.d.setVar("PREMIRRORS", "%s git://%s;protocol=file \n" % (dummyurl, self.sourcedir)) | 417 | self.d.setVar("PREMIRRORS", "%s git://%s;protocol=file \n" % (dummyurl, self.sourcedir)) |
418 | self.gitfetcher(dummyurl, dummyurl) | 418 | self.gitfetcher(dummyurl, dummyurl) |
419 | 419 | ||
420 | def test_git_submodule(self): | ||
421 | fetcher = bb.fetch.Fetch(["gitsm://git.yoctoproject.org/git-submodule-test;rev=f12e57f2edf0aa534cf1616fa983d165a92b0842"], self.d) | ||
422 | fetcher.download() | ||
423 | # Previous cwd has been deleted | ||
424 | os.chdir(os.path.dirname(self.unpackdir)) | ||
425 | fetcher.unpack(self.unpackdir) | ||
426 | |||
420 | class URLHandle(unittest.TestCase): | 427 | class URLHandle(unittest.TestCase): |
421 | 428 | ||
422 | datatable = { | 429 | datatable = { |