cli-test: Create dirs automatically

This commit is contained in:
cloudhead 2023-11-21 18:42:07 +01:00
parent 3ccb6a5fac
commit 2fc65def46
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

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