Closed
Description
Problem
#10346 allowed printing the executable path from cargo test --no-run. It works however it prints to stderr and doesn't print the paths to stdout.
Proposed Solution
Print just the paths to stdout.
Notes
You would use --no-run for example if you need to execute a cross-arch binary. For example, qemu-aarch64 <path-to-binary>
.
With this change it would be possible to do something like this.
cargo test --target aarch64-unknown-linux-gnu --no-run | xargs -L1 qemu-aarch64
Today the command looks like this,
cargo test --target aarch64-unknown-linux-gnu --no-run --message-format=json | jq -r 'select(.reason=="compiler-artifact") | .executable | select(. != null)' | xargs -L1 qemu-aarch64
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done