summaryrefslogtreecommitdiff
path: root/morphlib/builder2_tests.py
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-05-02 10:57:55 +0000
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-05-03 12:51:24 +0000
commit5b7f918f66df140ff38a9955f841c8aeeab6089d (patch)
tree1deff981f67277913c7ecf440de931e908b5e12b /morphlib/builder2_tests.py
parentdc7f4153ae6f74fe747117154e02a2198be6e8c2 (diff)
downloadmorph-5b7f918f66df140ff38a9955f841c8aeeab6089d.tar.gz
Use dedicated <cachedir>/artficats directory for local artifact cache.
Make sure that this directory is actually created before trying to save artifacts to it. Also adjust all tests to use this new directory for looking up artifacts.
Diffstat (limited to 'morphlib/builder2_tests.py')
-rw-r--r--morphlib/builder2_tests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/morphlib/builder2_tests.py b/morphlib/builder2_tests.py
index 8c08c551..93a2f8b7 100644
--- a/morphlib/builder2_tests.py
+++ b/morphlib/builder2_tests.py
@@ -139,6 +139,7 @@ class BuilderBaseTests(unittest.TestCase):
self.max_jobs = 1
self.builder = morphlib.builder2.BuilderBase(self.staging_area,
self.artifact_cache,
+ None,
self.artifact,
self.repo_cache,
self.build_env,
@@ -205,8 +206,8 @@ class BuilderBaseTests(unittest.TestCase):
class ChunkBuilderTests(unittest.TestCase):
def setUp(self):
- self.build = morphlib.builder2.ChunkBuilder(None, None, None, None,
- None, 1, False)
+ self.build = morphlib.builder2.ChunkBuilder(None, None, None, None,
+ None, None, 1, False)
def test_uses_morphology_commands_when_given(self):
m = { 'build-commands': ['build-it'] }