diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-01-12 13:02:59 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-01-12 13:02:59 +0000 |
commit | 28dd2ba113f40370586d693dd62e699897521ed8 (patch) | |
tree | 16032707e914bdadafea74319a510c0a7c43e7ff /morphlib/builder_tests.py | |
parent | f3197d814a5e883f47631a4f0acfa51bd1285daf (diff) | |
parent | 7e975343c7f00e98962d2edd07ac87630c4936c4 (diff) | |
download | morph-28dd2ba113f40370586d693dd62e699897521ed8.tar.gz |
Merge branch 'sam/cached-repo-cleanup'
Reviewed-By: Adam Coldrick <adam.coldrick@codethink.co.uk>
Reviewed-By: Richard Maw <richard.maw@codethink.co.uk>
Diffstat (limited to 'morphlib/builder_tests.py')
-rw-r--r-- | morphlib/builder_tests.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/morphlib/builder_tests.py b/morphlib/builder_tests.py index 2087c942..245648ba 100644 --- a/morphlib/builder_tests.py +++ b/morphlib/builder_tests.py @@ -20,6 +20,7 @@ import StringIO import unittest import morphlib +import morphlib.gitdir_tests class FakeBuildSystem(object): @@ -50,8 +51,9 @@ class FakeSource(object): } self.name = 'a' - self.repo = morphlib.cachedrepo.CachedRepo(FakeApp(), 'repo', - 'url', 'path') + with morphlib.gitdir_tests.allow_nonexistant_git_repos(): + self.repo = morphlib.cachedrepo.CachedRepo( + FakeApp(), 'repo', 'url', 'path') self.repo_name = 'url' self.original_ref = 'e' self.sha1 = 'f' |