Skip to content

Commit d906a0a

Browse files
authored
Unrolled build for #142461
Rollup merge of #142461 - Enselic:no-capture-tip, r=jieyouxu 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 Then 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. (See https://rust-lang.zulipchat.com/#narrow/channel/122651-general/topic/compiltest.20show.20rustc.20commands.3F for some more context.)
2 parents 64c81fd + 764e97c commit d906a0a

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)