diff options
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 = { |