diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-06-28 17:01:23 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-07-15 14:14:03 +0000 |
commit | f7b461220ec2f1af3966ace12c21334f1f3b6457 (patch) | |
tree | 2a3bb23cb1f26aa55fac6d5df2f95fb862755685 /tests/frontend/logging.py | |
parent | 9e5facfab87268a80cb02f2de87897764a416c8a (diff) | |
download | buildstream-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/frontend/logging.py')
-rw-r--r-- | tests/frontend/logging.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/frontend/logging.py b/tests/frontend/logging.py index a8f894976..6a17bf771 100644 --- a/tests/frontend/logging.py +++ b/tests/frontend/logging.py @@ -39,9 +39,8 @@ def test_default_logging(cli, tmpdir, datafiles): repo.source_config(ref=ref) ] } - _yaml.dump(element, - os.path.join(element_path, - element_name)) + _yaml.roundtrip_dump(element, + os.path.join(element_path, element_name)) # Now try to fetch it result = cli.run(project=project, args=['source', 'fetch', element_name]) @@ -76,9 +75,8 @@ def test_custom_logging(cli, tmpdir, datafiles): repo.source_config(ref=ref) ] } - _yaml.dump(element, - os.path.join(element_path, - element_name)) + _yaml.roundtrip_dump(element, + os.path.join(element_path, element_name)) # Now try to fetch it result = cli.run(project=project, args=['source', 'fetch', element_name]) @@ -104,7 +102,7 @@ def test_failed_build_listing(cli, datafiles): ] } } - _yaml.dump(element, os.path.join(project, element_path)) + _yaml.roundtrip_dump(element, os.path.join(project, element_path)) element_names.append(element_name) result = cli.run(project=project, args=['--on-error=continue', 'build', *element_names]) result.assert_main_error(ErrorDomain.STREAM, None) |