Skip to content

Print the command that is run if we are --verbose #361

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

Enselic
Copy link
Member

@Enselic Enselic commented Dec 28, 2024

This makes it easier to debug problems when you are doing tricky things like constructing the example command at #360.

Here is what the new --verbose output says if run with that example:

Running `cd "." && CARGO_TARGET_DIR="target-bisector-nightly-2023-03-31-x86_64-unknown-linux-gnu" RUSTUP_TOOLCHAIN="bisector-nightly-2023-03-31-x86_64-unknown-linux-gnu" "bash" "-c" "rustc -Cpasses=lint -Cinstrument-coverage --crate-type=dylib tests/ui/issues/issue-85461.rs 2>&1 | grep Undefined"`

Here is what it looks like with context:

checking the start range to find a passing nightly
installing nightly-2023-03-31
testing...
Running `cd "." && CARGO_TARGET_DIR="target-bisector-nightly-2023-03-31-x86_64-unknown-linux-gnu" RUSTUP_TOOLCHAIN="bisector-nightly-2023-03-31-x86_64-unknown-linux-gnu" "bash" "-c" "rustc -Cpasses=lint -Cinstrument-coverage --crate-type=dylib tests/ui/issues/issue-85461.rs 2>&1 | grep Undefined"`
RESULT: nightly-2023-03-31, ===> Script returned success

checking the end range to verify it does not pass
installing nightly-2023-12-21
testing...
Running `cd "." && CARGO_TARGET_DIR="target-bisector-nightly-2023-12-21-x86_64-unknown-linux-gnu" RUSTUP_TOOLCHAIN="bisector-nightly-2023-12-21-x86_64-unknown-linux-gnu" "bash" "-c" "rustc -Cpasses=lint -Cinstrument-coverage --crate-type=dylib tests/ui/issues/issue-85461.rs 2>&1 | grep Undefined"`
RESULT: nightly-2023-12-21, ===> Script returned error

133 versions remaining to test after this (roughly 8 steps)
installing nightly-2023-08-10
testing...
Running `cd "." && CARGO_TARGET_DIR="target-bisector-nightly-2023-08-10-x86_64-unknown-linux-gnu" RUSTUP_TOOLCHAIN="bisector-nightly-2023-08-10-x86_64-unknown-linux-gnu" "bash" "-c" "rustc -Cpasses=lint -Cinstrument-coverage --crate-type=dylib tests/ui/issues/issue-85461.rs 2>&1 | grep Undefined"`
RESULT: nightly-2023-08-10, ===> Script returned error

Copy link
Collaborator

@ehuss ehuss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ehuss ehuss merged commit b351a7d into rust-lang:master Dec 31, 2024
4 checks passed
@Enselic Enselic deleted the print-cmd branch December 31, 2024 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants