summaryrefslogtreecommitdiff
path: root/morphlib/builder_tests.py
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-01-12 13:02:59 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-01-12 13:02:59 +0000
commit28dd2ba113f40370586d693dd62e699897521ed8 (patch)
tree16032707e914bdadafea74319a510c0a7c43e7ff /morphlib/builder_tests.py
parentf3197d814a5e883f47631a4f0acfa51bd1285daf (diff)
parent7e975343c7f00e98962d2edd07ac87630c4936c4 (diff)
downloadmorph-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.py6
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'