-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.
Description
BUG
[DESIGN BUG] doctest
should print Running
runner, which maybe expensive.
actual
test
does print Running
runner.
Running `/path/to/runner-ssh-aarch64-linux-android.sh ...`
Fresh doctest_example v0.1.0 (/path/to/doctest_example)
Timing report saved to /path/to/target/cargo-timings/cargo-timing-XXX.html
Finished `XXX` profile [optimized] target(s) in 0.01s
Running `/path/to/runner-ssh-aarch64-linux-android.sh /path/to/target/aarch64-linux-android/XXX/deps/doctest_example-XXX`
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
doctest
does not print Running
runner, which maybe expensive.
Doc-tests doctest_example
Running `/home/vscode/.rustup/toolchains/nightly-2025-04-14-x86_64-unknown-linux-gnu/bin/rustdoc ...`
WARNING: No rustdoc doctest environment variable provided so doctests will be run in the same process
running 1 test
test doctest_example/src/lib.rs - add (line 3) ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
expected
doctest
should print Running
runner, which maybe expensive.
[PATCH] Running `/path/to/runner-ssh-aarch64-linux-android.sh /path/to/target/XXX/path/to/doctest/merged_doctest_2024/rust_out`
Fresh doctest_example v0.1.0 (/path/to/doctest_example)
Timing report saved to /path/to/target/cargo-timings/cargo-timing-XXX.html
Finished `XXX` profile [optimized] target(s) in 0.01s
Running `/path/to/runner-ssh-aarch64-linux-android.sh /path/to/target/aarch64-linux-android/XXX/deps/doctest_example-XXX`
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests doctest_example
Running `/home/vscode/.rustup/toolchains/nightly-2025-04-14-x86_64-unknown-linux-gnu/bin/rustdoc ...`
[PATCH] Running `/path/to/runner-ssh-aarch64-linux-android.sh /path/to/target/XXX/path/to/doctest/merged_doctest_2024/rust_out`
WARNING: No rustdoc doctest environment variable provided so doctests will be run in the same process
running 1 test
test doctest_example/src/lib.rs - add (line 3) ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
version
channel = "nightly-2025-04-14"
workaround
Every runner embed
BOLD_GREEN='\e[1;32m'
RESET='\e[0m'
if [ -v CARGO_CRATE_NAME ]; then
# case: rustdoc
echo -e " ${BOLD_GREEN:?}[PATCH] Running${RESET:?} \`$0 $*\`" >&2
fi
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.