diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-11-20 13:57:31 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2016-03-25 02:02:26 +0000 |
commit | 110d04440c5d6ec75bf252802badfe5b992bb38e (patch) | |
tree | 42aca1865b2610c3210ac888991fc3b509cff032 /morphlib/gitdir_tests.py | |
parent | 2f22021e81f65819b3a6f88ac68d20496bd56b15 (diff) | |
download | morph-baserock/pedroalvarez/defv8.tar.gz |
WIP Add support for multiple sources per chunkbaserock/pedroalvarez/defv8
TODO:
- Add API to the cache server to retrieve a submodule commit from a
given path.
- Fix cross-bootstrap command.
Change-Id: I3475c2bcb648a272fee33bc878a521f79d4e6581
Diffstat (limited to 'morphlib/gitdir_tests.py')
-rw-r--r-- | morphlib/gitdir_tests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/morphlib/gitdir_tests.py b/morphlib/gitdir_tests.py index 4da98bbc..d74b4a13 100644 --- a/morphlib/gitdir_tests.py +++ b/morphlib/gitdir_tests.py @@ -104,6 +104,12 @@ class GitDirectoryTests(unittest.TestCase): gitdir = self.empty_git_directory() self.assertIsInstance(gitdir.get_index(), morphlib.gitindex.GitIndex) + def test_non_existent_submodule_path_raises_error(self): + gitdir = self.empty_git_directory() + self.assertRaises( + morphlib.gitdir.MissingSubmoduleCommitError, + gitdir.get_submodule_commit, 'master', 'somepath') + class GitDirectoryAnchoredRefTests(unittest.TestCase): |