We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40325ee commit 11f4deeCopy full SHA for 11f4dee
tests/full.rs
@@ -94,14 +94,18 @@ mod full {
94
.expect("could not read line from rust-semverver output")
95
.trim_end();
96
97
+ let has_expected_line = stdout.lines().any(|l| l.starts_with("version bump"));
98
+
99
stdout
100
.lines()
101
.chain(stderr.lines())
102
.map(|l| l.trim_end())
103
.skip_while(|line|
104
// skip everything before the first important bit of info
105
!line.starts_with("version bump") &&
- // ...unless debugging is enabled
106
+ // ...if we know it's in there at all
107
+ has_expected_line &&
108
+ // ...unless debugging is enabled, then always show
109
!log_enabled!(Level::Debug))
110
.map(|line| {
111
// sanitize paths for reproducibility
0 commit comments