mirror of
https://github.com/martinvonz/jj.git
synced 2024-12-01 11:49:01 +00:00
d654a9e163
Before this, it was difficult to run an integration test after adding any directives from printf-style debugging to jj (e.g. `err!`, `eprintln!`, `println!`), since `jj_cmd_success` fails if `jj` to output anything to stderr while `jj_cmd_failure` fails if stdout is not empty. This adds a `TestEnvironment::debug_allow_stderr` variable that lifts this restriction for `jj_cmd_success` and makes it output anything `jj` output to stderr instead. You can set it directly or by running the test with the `DEBUG_ALLOW_STDERR` environment variable set. You can then add `err!` anywhere. You do need to run the test in a somewhat special way, as described in the docstring. |
||
---|---|---|
.. | ||
mod.rs |