We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a12969e commit 6c79f54Copy full SHA for 6c79f54
src/bootstrap/src/utils/tests/mod.rs
@@ -98,6 +98,14 @@ impl ConfigBuilder {
98
self
99
}
100
101
+ pub fn config_toml(mut self, config_toml: &str) -> Self {
102
+ let toml_path = self.directory.join("bootstrap.toml");
103
+ std::fs::write(&toml_path, config_toml).unwrap();
104
+ self.args.push("--config".to_string());
105
+ self.args.push(toml_path.display().to_string());
106
+ self
107
+ }
108
+
109
pub fn create_config(mut self) -> Config {
110
// Run in dry-check, otherwise the test would be too slow
111
self.args.push("--dry-run".to_string());
0 commit comments