Skip to content

Commit 7967fa3

Browse files
committed
Do not hide test output in log file
Putting the clippy output in a log file is somewhat convenient for local use. But if there's a failure in CI that's difficult to reproduce locally, it only makes things harder to debug.
1 parent 9eb4501 commit 7967fa3

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

rust-tooling/ci-tests/tests/stubs_are_warning_free.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,5 @@ fn stubs_are_warning_free() {
7373
if !log.is_empty() {
7474
std::fs::write("clippy.log", &log).expect("should write clippy.log");
7575
}
76-
assert!(
77-
log.is_empty(),
78-
"
79-
╔═════════════════════════════════════════╗
80-
║ clippy found warnings, check clippy.log ║
81-
╚═════════════════════════════════════════╝
82-
"
83-
);
76+
assert!(log.is_empty(), "{log}");
8477
}

0 commit comments

Comments
 (0)