summaryrefslogtreecommitdiff
path: root/tests/artifactcache
diff options
context:
space:
mode:
authorBenjamin Schubert <contact@benschubert.me>2019-06-18 11:05:52 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-15 14:14:03 +0000
commit8bfe8dd6ad49445c900662f304072eb20f0ff606 (patch)
tree07e04ff71c848692acb8f0f2d866449672fe0031 /tests/artifactcache
parent1aa0fb1fefa7e86586831a13200a92f6dd9bd3b4 (diff)
downloadbuildstream-8bfe8dd6ad49445c900662f304072eb20f0ff606.tar.gz
_yaml: Remove 'node_set'. Now use __setitem__
- Implement __setitem__ on 'MappingNode' - Implement __setitem__ on 'SequenceNode' - Adapt all call sites to use the new calling way.
Diffstat (limited to 'tests/artifactcache')
-rw-r--r--tests/artifactcache/junctions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/artifactcache/junctions.py b/tests/artifactcache/junctions.py
index 2798f032c..f099ee566 100644
--- a/tests/artifactcache/junctions.py
+++ b/tests/artifactcache/junctions.py
@@ -20,10 +20,10 @@ DATA_DIR = os.path.join(
def project_set_artifacts(project, url):
project_conf_file = os.path.join(project, 'project.conf')
project_config = _yaml.load(project_conf_file)
- _yaml.node_set(project_config, 'artifacts', {
+ project_config['artifacts'] = {
'url': url,
'push': True
- })
+ }
_yaml.dump(project_config, filename=project_conf_file)