summaryrefslogtreecommitdiffstats
path: root/src/modules/hg_branch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/hg_branch.rs')
-rw-r--r--src/modules/hg_branch.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/hg_branch.rs b/src/modules/hg_branch.rs
index b0d19edbb..a30c2a538 100644
--- a/src/modules/hg_branch.rs
+++ b/src/modules/hg_branch.rs
@@ -103,9 +103,9 @@ mod tests {
use std::fs;
use std::io;
use std::path::Path;
- use std::process::Command;
use crate::test::{fixture_repo, FixtureProvider, ModuleRenderer};
+ use crate::utils::create_command;
enum Expect<'a> {
BranchName(&'a str),
@@ -335,7 +335,7 @@ mod tests {
}
fn run_hg(args: &[&str], repo_dir: &Path) -> io::Result<()> {
- Command::new("hg")
+ create_command("hg")?
.args(args)
.current_dir(&repo_dir)
.output()?;