From 4d38f6189114367014794619ef1fcb79e984c484 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Thu, 11 Sep 2014 13:00:50 +0000 Subject: Make remoteartifactcache tests define sensible artifacts It rather peculiarly defines artifacts that have different cache keys, but the same source. This flies in the face of how real artifacts get cache keys, and our ability to move the cache key to being per-source. --- morphlib/remoteartifactcache_tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/morphlib/remoteartifactcache_tests.py b/morphlib/remoteartifactcache_tests.py index ca959ebf..3ee181ee 100644 --- a/morphlib/remoteartifactcache_tests.py +++ b/morphlib/remoteartifactcache_tests.py @@ -47,13 +47,13 @@ class RemoteArtifactCacheTests(unittest.TestCase): 'repo', 'ref', 'sha1', 'tree', morph, 'chunk.morph') self.runtime_artifact = morphlib.artifact.Artifact( self.source, 'chunk-runtime') - self.runtime_artifact.cache_key = 'CHUNK-RUNTIME' + self.runtime_artifact.cache_key = 'CHUNK' self.devel_artifact = morphlib.artifact.Artifact( self.source, 'chunk-devel') - self.devel_artifact.cache_key = 'CHUNK-DEVEL' + self.devel_artifact.cache_key = 'CHUNK' self.doc_artifact = morphlib.artifact.Artifact( self.source, 'chunk-doc') - self.doc_artifact.cache_key = 'CHUNK-DOC' + self.doc_artifact.cache_key = 'CHUNK' self.existing_files = set([ self.runtime_artifact.basename(), -- cgit v1.2.1