mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-12 07:14:38 +00:00
tests: check that stderr is empty after successful commands
Successful commands should probably not write to stderr. If we later add commands that e.g. print warnings to stderr, we'll want to cover that explicitly in test.
This commit is contained in:
parent
12bce70bed
commit
d68eee296e
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ impl TestEnvironment {
|
|||
|
||||
/// Run a `jj` command, check that it was successful, and return its stdout
|
||||
pub fn jj_cmd_success(&self, current_dir: &Path, args: &[&str]) -> String {
|
||||
let assert = self.jj_cmd(current_dir, args).assert().success();
|
||||
let assert = self.jj_cmd(current_dir, args).assert().success().stderr("");
|
||||
get_stdout_string(&assert)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue