summaryrefslogtreecommitdiff
path: root/tests/internals
diff options
context:
space:
mode:
authorRaoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk>2019-02-28 15:13:38 +0000
committerJürg Billeter <j@bitron.ch>2019-03-14 07:12:34 +0000
commit6a1e74619e0009ca5611bba025b8dcf08bec353e (patch)
treec75f062f36ebf71556cc5ed3dbe78d1f0b4693ec /tests/internals
parent5de8de8ec76609c3eb3a75443d2566b55c29b440 (diff)
downloadbuildstream-6a1e74619e0009ca5611bba025b8dcf08bec353e.tar.gz
Integrate source cache with rest of buildstream
This involve introducing new Consistency states `STAGED` and `BOTH` that represent when the source is just in the local CAS and in both the local CAS and unstaged in the source directory. Sources are staged for each element into the local CAS during the fetch stage. If the sources are in the local consistency state `STAGED` when wanting to open a workspace, the original sources are fetched. Relavant tests this affects have been changed. Part of #440
Diffstat (limited to 'tests/internals')
-rw-r--r--tests/internals/pluginloading/customsource/pluginsources/foo.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/internals/pluginloading/customsource/pluginsources/foo.py b/tests/internals/pluginloading/customsource/pluginsources/foo.py
index d2b0d9c6d..8dd16801c 100644
--- a/tests/internals/pluginloading/customsource/pluginsources/foo.py
+++ b/tests/internals/pluginloading/customsource/pluginsources/foo.py
@@ -9,6 +9,9 @@ class FooSource(Source):
def configure(self, node):
pass
+ def get_unique_key(self):
+ pass
+
def get_consistency(self):
return Consistency.INCONSISTENT