summaryrefslogtreecommitdiff
path: root/morphlib/gitdir_tests.py
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2015-11-20 13:57:31 +0000
committerTiago Gomes <tiago.gomes@codethink.co.uk>2015-11-20 14:09:18 +0000
commitd5b0d37ad9343b8d66fe99648d305a41199d3920 (patch)
treedb3966aca61264e2ef2635bace6c4667bbd21abb /morphlib/gitdir_tests.py
parenta75e5121478e2a645c65d276cc20f3eb659222f4 (diff)
downloadmorph-baserock/tiagogomes/multiple-sources.tar.gz
WIP Add support for multiple sources per chunkbaserock/tiagogomes/multiple-sources
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.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/morphlib/gitdir_tests.py b/morphlib/gitdir_tests.py
index 0ec7b0f1..e75ef483 100644
--- a/morphlib/gitdir_tests.py
+++ b/morphlib/gitdir_tests.py
@@ -102,6 +102,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):