Skip to content

Commit

Permalink
Refactor cargo_test_odra_vm and cargo_test_backend functions
Browse files Browse the repository at this point in the history
  • Loading branch information
kpob committed Jun 26, 2024
1 parent 1975815 commit 0f63c68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ pub fn cargo_generate_schema_files(current_dir: PathBuf, contract_name: &str, mo
/// Runs cargo test.
pub fn cargo_test_odra_vm(current_dir: PathBuf, mut args: Vec<&str>) {
log::info("Running cargo test...");
let mut tail_args = vec!["--lib"];
let mut tail_args = vec![];
tail_args.append(&mut args);
cargo(current_dir, "test", tail_args);
}
Expand All @@ -161,7 +161,7 @@ pub fn cargo_test_odra_vm(current_dir: PathBuf, mut args: Vec<&str>) {
pub fn cargo_test_backend(project_root: PathBuf, backend_name: &str, mut args: Vec<&str>) {
env::set_var(ODRA_BACKEND_ENV_KEY, backend_name);
log::info("Running cargo test...");
let mut tail_args = vec!["--lib"];
let mut tail_args = vec![];
tail_args.append(&mut args);
cargo(project_root, "test", tail_args)
}
Expand Down

0 comments on commit 0f63c68

Please sign in to comment.