summaryrefslogtreecommitdiff
path: root/tests/artifactcache/push.py
diff options
context:
space:
mode:
authorJames Ennis <james.ennis@codethink.co.uk>2019-07-11 09:43:28 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-16 09:13:39 +0000
commit1313989ce22160e8d225c8b22c47b2c07556fa21 (patch)
tree2b8caa9af1bffb0a7b344b9ddab43ab487feb980 /tests/artifactcache/push.py
parent385e3719c7e6dc15f72c0acaca54622b3c073ecc (diff)
downloadbuildstream-1313989ce22160e8d225c8b22c47b2c07556fa21.tar.gz
_pipeline.py, loader.py: Move Element._preflight() to new_from_meta()
It's essential to call preflight() when loading/resolving the Elements. This patch moves the preflight call to new_from_meta, so that it is called as soon as the Element is created. This avoids the need for having multiple callsites.
Diffstat (limited to 'tests/artifactcache/push.py')
-rw-r--r--tests/artifactcache/push.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/artifactcache/push.py b/tests/artifactcache/push.py
index 9b976c490..da658f76b 100644
--- a/tests/artifactcache/push.py
+++ b/tests/artifactcache/push.py
@@ -124,8 +124,6 @@ def _test_push(user_config_file, project_dir, element_name, queue):
# This is duplicated from Pipeline.resolve_elements()
# as this test does not use the cli frontend.
for e in element.dependencies(Scope.ALL):
- # Preflight
- e._preflight()
# Determine initial element state.
e._update_state()