diff options
author | Tristan Maat <tristan.maat@codethink.co.uk> | 2019-10-18 17:54:42 +0100 |
---|---|---|
committer | Tristan Maat <tristan.maat@codethink.co.uk> | 2019-11-18 13:22:38 +0000 |
commit | 2a2c14055f2ced46ff03ce02081d8f9ff439f906 (patch) | |
tree | cc16fb51632883b23cced5ba4e6d62d32e488fad /tests/artifactcache | |
parent | f5a23b82784afe208febfdde9c1912e9f059e1c4 (diff) | |
download | buildstream-2a2c14055f2ced46ff03ce02081d8f9ff439f906.tar.gz |
Create _initialize_state() to capture an _update_state() use case
Diffstat (limited to 'tests/artifactcache')
-rw-r--r-- | tests/artifactcache/push.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/artifactcache/push.py b/tests/artifactcache/push.py index e5a332dea..7160e05b4 100644 --- a/tests/artifactcache/push.py +++ b/tests/artifactcache/push.py @@ -37,8 +37,8 @@ def _push(cli, cache_dir, project_dir, config_file, target): # as this test does not use the cli frontend. for e in element.dependencies(Scope.ALL): # Determine initial element state. - e._update_source_state() - e._update_state() + if not element._resolved_initial_state: + e._initialize_state() # Manually setup the CAS remotes artifactcache.setup_remotes(use_config=True) |