diff options
Diffstat (limited to 'tests/ui/src/imag_category.rs')
-rw-r--r-- | tests/ui/src/imag_category.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/ui/src/imag_category.rs b/tests/ui/src/imag_category.rs index 0f865c5d..268bc8a2 100644 --- a/tests/ui/src/imag_category.rs +++ b/tests/ui/src/imag_category.rs @@ -28,7 +28,8 @@ pub fn binary(tempdir: &TempDir) -> Command { pub fn call(tmpdir: &TempDir, args: &[&str]) -> Vec<String> { let mut binary = binary(tmpdir); binary.stdin(std::process::Stdio::inherit()); - binary.arg("--ignore-ids"); + binary.arg("--pipe-input"); + binary.arg("--pipe-output"); binary.args(args); debug!("Command = {:?}", binary); crate::imag::stdout_of_command(binary) @@ -44,7 +45,10 @@ fn test_new_entry_has_no_category() { let (assert, stderr_output) = { let mut binary = binary(&imag_home); binary.stdin(std::process::Stdio::inherit()); - binary.args(&["--ignore-ids", "get", "test"]); + binary.arg("--pipe-input"); + binary.arg("--pipe-output"); + binary.arg("get"); + binary.arg("test"); crate::imag::stderr_of_command(&mut binary) }; |