summaryrefslogtreecommitdiff
path: root/tests/cachekey
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-06-28 17:01:23 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-15 14:14:03 +0000
commitf7b461220ec2f1af3966ace12c21334f1f3b6457 (patch)
tree2a3bb23cb1f26aa55fac6d5df2f95fb862755685 /tests/cachekey
parent9e5facfab87268a80cb02f2de87897764a416c8a (diff)
downloadbuildstream-f7b461220ec2f1af3966ace12c21334f1f3b6457.tar.gz
tests: Change all calls to _yaml.dump to _yaml.rountrip_dump
Now that both are equivalent, we can skip the sanitization part before the yaml call.
Diffstat (limited to 'tests/cachekey')
-rw-r--r--tests/cachekey/cachekey.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cachekey/cachekey.py b/tests/cachekey/cachekey.py
index bbececb8c..acfe97947 100644
--- a/tests/cachekey/cachekey.py
+++ b/tests/cachekey/cachekey.py
@@ -198,11 +198,11 @@ def test_cache_key_fatal_warnings(cli, tmpdir, first_warnings, second_warnings,
project_dir = tmpdir.mkdir(project_name)
project_config_file = str(project_dir.join('project.conf'))
- _yaml.dump(config, filename=project_config_file)
+ _yaml.roundtrip_dump(config, file=project_config_file)
elem_dir = project_dir.mkdir('elements')
element_file = str(elem_dir.join('stack.bst'))
- _yaml.dump({'kind': 'stack'}, filename=element_file)
+ _yaml.roundtrip_dump({'kind': 'stack'}, file=element_file)
result = cli.run(project=str(project_dir), args=[
'show',