summaryrefslogtreecommitdiff
path: root/morphlib/localartifactcache_tests.py
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-04-18 16:49:24 +0100
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-04-18 16:49:24 +0100
commit105c0dbbd14626a832ebc036c02bc0c9c60e43bc (patch)
tree9e9398e9e4d4bc8da54a63094142f941b881419e /morphlib/localartifactcache_tests.py
parent605e21914f8c9536ff42ca31043b26200dab85e2 (diff)
downloadmorph-105c0dbbd14626a832ebc036c02bc0c9c60e43bc.tar.gz
Remove BuildGraph, compute cache keys based on Artifacts.
With this commit, the ArtifactResolver no longer computes the cache keys when creating Artifact objects. This will have to happen as a post-resolving step (e.g. prior to building or checking whether a local or remote artifact cache has any of the resolved artifacts). The CacheKeyComputer now takes an Artifact object and computes the cache keys using its dependencies. BuildGraph is no longer needed for the CacheKeyComputer unit tests.
Diffstat (limited to 'morphlib/localartifactcache_tests.py')
-rw-r--r--morphlib/localartifactcache_tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/morphlib/localartifactcache_tests.py b/morphlib/localartifactcache_tests.py
index 41eb3d0b..a2fb0810 100644
--- a/morphlib/localartifactcache_tests.py
+++ b/morphlib/localartifactcache_tests.py
@@ -45,9 +45,9 @@ class LocalArtifactCacheTests(unittest.TestCase):
self.source = morphlib.source.Source(
'repo', 'ref', 'sha1', morph, 'chunk.morph')
self.runtime_artifact = morphlib.artifact.Artifact(
- self.source, 'chunk-runtime', 'cachekey')
+ self.source, 'chunk-runtime')
self.devel_artifact = morphlib.artifact.Artifact(
- self.source, 'chunk-devel', 'cachekey')
+ self.source, 'chunk-devel')
def tearDown(self):
self.tempdir.remove()