summaryrefslogtreecommitdiff
path: root/src/buildstream/testing/_sourcetests/workspace.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/testing/_sourcetests/workspace.py')
-rw-r--r--src/buildstream/testing/_sourcetests/workspace.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/buildstream/testing/_sourcetests/workspace.py b/src/buildstream/testing/_sourcetests/workspace.py
index 5218f8f1e..5ceab5108 100644
--- a/src/buildstream/testing/_sourcetests/workspace.py
+++ b/src/buildstream/testing/_sourcetests/workspace.py
@@ -73,9 +73,8 @@ class WorkspaceCreator():
}
if element_attrs:
element = {**element, **element_attrs}
- _yaml.dump(element,
- os.path.join(element_path,
- element_name))
+ _yaml.roundtrip_dump(element,
+ os.path.join(element_path, element_name))
return element_name, element_path, workspace_dir
def create_workspace_elements(self, kinds, track, suffixs=None, workspace_dir_usr=None,