diff options
author | Raoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk> | 2019-02-28 15:13:38 +0000 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-03-14 07:12:34 +0000 |
commit | 6a1e74619e0009ca5611bba025b8dcf08bec353e (patch) | |
tree | c75f062f36ebf71556cc5ed3dbe78d1f0b4693ec /tests/frontend/project | |
parent | 5de8de8ec76609c3eb3a75443d2566b55c29b440 (diff) | |
download | buildstream-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/frontend/project')
-rw-r--r-- | tests/frontend/project/sources/fetch_source.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/frontend/project/sources/fetch_source.py b/tests/frontend/project/sources/fetch_source.py index d454f69e0..06596607b 100644 --- a/tests/frontend/project/sources/fetch_source.py +++ b/tests/frontend/project/sources/fetch_source.py @@ -62,6 +62,9 @@ class FetchSource(Source): if not os.path.exists(output_dir): raise SourceError("Directory '{}' does not exist".format(output_dir)) + def stage(self, directory): + pass + def fetch(self): for fetcher in self.fetchers: fetcher.fetch() |