summaryrefslogtreecommitdiff
path: root/src/buildstream/testing/_sourcetests/fetch.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/testing/_sourcetests/fetch.py')
-rw-r--r--src/buildstream/testing/_sourcetests/fetch.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/buildstream/testing/_sourcetests/fetch.py b/src/buildstream/testing/_sourcetests/fetch.py
index aaf92a14d..d9b0876c6 100644
--- a/src/buildstream/testing/_sourcetests/fetch.py
+++ b/src/buildstream/testing/_sourcetests/fetch.py
@@ -53,9 +53,8 @@ def test_fetch(cli, tmpdir, datafiles, kind):
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))
# Assert that a fetch is needed
assert cli.get_element_state(project, element_name) == 'fetch needed'
@@ -89,7 +88,7 @@ def test_fetch_cross_junction(cli, tmpdir, datafiles, ref_storage, kind):
repo.source_config(ref=(ref if ref_storage == 'inline' else None))
]
}
- _yaml.dump(element, import_etc_path)
+ _yaml.roundtrip_dump(element, import_etc_path)
configure_project(project, {
'ref-storage': ref_storage