cli-test: Create dirs automatically

This commit is contained in:
cloudhead
2023-11-22 11:29:44 +01:00
parent 3ccb6a5fac
commit 2fc65def46
+2 -1
View File
@@ -438,7 +438,8 @@ impl TestFormula {
log::debug!(target: "test", "{path}: Running `{}` with {:?} in `{}`..", cmd.display(), assertion.args, run.path().display());
if !run.path().exists() {
log::error!(target: "test", "{path}: Directory {} does not exist..", run.path().display());
log::warn!(target: "test", "{path}: Directory {} does not exist. Creating..", run.path().display());
fs::create_dir_all(run.path())?;
}
let bins = self