diff options
Diffstat (limited to 'tests/subplots/common/runcmd_test.rs')
-rw-r--r-- | tests/subplots/common/runcmd_test.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/subplots/common/runcmd_test.rs b/tests/subplots/common/runcmd_test.rs index 7759e5f..d3a7ca5 100644 --- a/tests/subplots/common/runcmd_test.rs +++ b/tests/subplots/common/runcmd_test.rs @@ -1,3 +1,4 @@ +use std::path::Path; use subplotlib::steplibrary::files::{self, Datadir}; use subplotlib::steplibrary::runcmd::Runcmd; @@ -8,7 +9,7 @@ use std::os::unix::fs::PermissionsExt; #[context(Datadir)] fn create_script_from_embedded( context: &ScenarioContext, - filename: &str, + filename: &Path, embedded: SubplotDataFile, ) { files::create_from_embedded_with_other_name::call(context, filename, embedded)?; @@ -20,6 +21,6 @@ fn create_script_from_embedded( } #[step] -fn prepend_to_path(context: &mut Runcmd, dirname: &str) { +fn prepend_to_path(context: &mut Runcmd, dirname: &Path) { context.prepend_to_path(dirname); } |