Skip to content

Commit 417cf61

Browse files
committed
compiletest: Clarify that --no-capture is needed with --verbose
Confusingly, this does not make compile test print what command is used to run a ui test: ./x test tests/ui/panics/abort-on-panic.rs --verbose It is also necessary to pass `-- --no-capture`, like this: ./x test tests/ui/panics/abort-on-panic.rs --verbose -- --no-capture Now you will see prints like this: executing cd "/rust/build/x86_64-unknown-linux-gnu/test/ui/panics/abort-on-panic.next" && \ RUSTC="/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc" \ RUST_TEST_THREADS="32" \ "/rust/build/x86_64-unknown-linux-gnu/test/ui/panics/abort-on-panic.next/a" Add a hint in the code for this that would have helped me figure this out.
1 parent 015c777 commit 417cf61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tools/compiletest/src/util.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ fn path_div() -> &'static str {
2929
pub fn logv(config: &Config, s: String) {
3030
debug!("{}", s);
3131
if config.verbose {
32+
// Note: `./x test ... --verbose -- --no-capture` is needed to see this print.
3233
println!("{}", s);
3334
}
3435
}

0 commit comments

Comments
 (0)