summaryrefslogtreecommitdiff
path: root/morphlib/builder2_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/builder2_tests.py')
-rw-r--r--morphlib/builder2_tests.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/morphlib/builder2_tests.py b/morphlib/builder2_tests.py
index 4fd0807a..f7a761f2 100644
--- a/morphlib/builder2_tests.py
+++ b/morphlib/builder2_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'