summaryrefslogtreecommitdiff
path: root/tests/sandboxes
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sandboxes')
-rw-r--r--tests/sandboxes/fallback.py2
-rw-r--r--tests/sandboxes/missing_dependencies.py4
-rw-r--r--tests/sandboxes/remote-exec-config.py6
-rw-r--r--tests/sandboxes/selection.py4
4 files changed, 8 insertions, 8 deletions
diff --git a/tests/sandboxes/fallback.py b/tests/sandboxes/fallback.py
index eebe7ddb2..d8170c61d 100644
--- a/tests/sandboxes/fallback.py
+++ b/tests/sandboxes/fallback.py
@@ -54,7 +54,7 @@ def test_fallback_platform_fails(cli, datafiles):
],
},
}
- _yaml.dump(element, element_path)
+ _yaml.roundtrip_dump(element, element_path)
clean_platform_cache()
diff --git a/tests/sandboxes/missing_dependencies.py b/tests/sandboxes/missing_dependencies.py
index 79153f769..33a169ca2 100644
--- a/tests/sandboxes/missing_dependencies.py
+++ b/tests/sandboxes/missing_dependencies.py
@@ -39,7 +39,7 @@ def test_missing_brwap_has_nice_error_message(cli, datafiles):
],
},
}
- _yaml.dump(element, element_path)
+ _yaml.roundtrip_dump(element, element_path)
# Build without access to host tools, this should fail with a nice error
result = cli.run(
@@ -82,7 +82,7 @@ def test_old_brwap_has_nice_error_message(cli, datafiles, tmp_path):
],
},
}
- _yaml.dump(element, element_path)
+ _yaml.roundtrip_dump(element, element_path)
# Build without access to host tools, this should fail with a nice error
result = cli.run(
diff --git a/tests/sandboxes/remote-exec-config.py b/tests/sandboxes/remote-exec-config.py
index 90418d6fc..a6aeeb7ab 100644
--- a/tests/sandboxes/remote-exec-config.py
+++ b/tests/sandboxes/remote-exec-config.py
@@ -38,7 +38,7 @@ def test_old_and_new_configs(cli, datafiles):
}
}
project_conf_file = os.path.join(project, 'project.conf')
- _yaml.dump(project_conf, project_conf_file)
+ _yaml.roundtrip_dump(project_conf, project_conf_file)
# Use `pull` here to ensure we try to initialize the remotes, triggering the error
#
@@ -72,7 +72,7 @@ def test_missing_certs(cli, datafiles, config_key, config_value):
}
}
project_conf_file = os.path.join(project, 'project.conf')
- _yaml.dump(project_conf, project_conf_file)
+ _yaml.roundtrip_dump(project_conf, project_conf_file)
# Use `pull` here to ensure we try to initialize the remotes, triggering the error
#
@@ -93,7 +93,7 @@ def test_empty_config(cli, datafiles):
}
}
project_conf_file = os.path.join(project, 'project.conf')
- _yaml.dump(project_conf, project_conf_file)
+ _yaml.roundtrip_dump(project_conf, project_conf_file)
# Use `pull` here to ensure we try to initialize the remotes, triggering the error
#
diff --git a/tests/sandboxes/selection.py b/tests/sandboxes/selection.py
index c20ce3d3a..50406b4cb 100644
--- a/tests/sandboxes/selection.py
+++ b/tests/sandboxes/selection.py
@@ -54,7 +54,7 @@ def test_force_sandbox(cli, datafiles):
],
},
}
- _yaml.dump(element, element_path)
+ _yaml.roundtrip_dump(element, element_path)
clean_platform_cache()
@@ -87,7 +87,7 @@ def test_dummy_sandbox_fallback(cli, datafiles):
],
},
}
- _yaml.dump(element, element_path)
+ _yaml.roundtrip_dump(element, element_path)
clean_platform_cache()