Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli-test: Create dirs automatically
cloudhead committed 2 years ago
commit 2fc65def46564de46e9b1f5b2b7a81e4029b6058
parent 3ccb6a5fac2b7dc9d7991c5b8c5767a472c7e1f4
1 file changed +2 -1
modified radicle-cli-test/src/lib.rs
@@ -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