cli_run test fixes

This commit is contained in:
Anton-4 2022-09-24 20:14:59 +02:00
parent 076190a217
commit 1d9a751606
No known key found for this signature in database
GPG key ID: A13F4A6E21141925
4 changed files with 19 additions and 4 deletions

View file

@ -359,6 +359,19 @@ pub fn root_dir() -> PathBuf {
path
}
// start the dir with crates/cli_testing_examples
#[allow(dead_code)]
pub fn cli_testing_dir(dir_name: &str) -> PathBuf {
let mut path = root_dir();
// Descend into examples/{dir_name}
path.push("crates");
path.push("cli_testing_examples");
path.extend(dir_name.split("/")); // Make slashes cross-target
path
}
#[allow(dead_code)]
pub fn examples_dir(dir_name: &str) -> PathBuf {
let mut path = root_dir();