I see the following tidy package's unit test failures when running rust tests:
python3 src/bootstrap/bootstrap.py test --exclude src/tools/tidy --no-fail-fast --bless --target x86_64-unknown-linux-gnu
Testing tidy (stage0 -> stage1, x86_64-unknown-linux-gnu)
Compiling tidy v0.1.0 (/home/rust/src/tools/tidy)
Finished release [optimized] target(s) in 15.14sRunning unittests src/lib.rs (build/x86_64-unknown-linux-gnu/stage0-bootstrap-tools/x86_64-unknown-linux-gnu/release/deps/tidy-268e857e44aa5cf1)
uploaded "/home/rust/build/x86_64-unknown-linux-gnu/stage0-bootstrap-tools/x86_64-unknown-linux-gnu/release/deps/tidy-268e857e44aa5cf1", waiting for result
thread 'main' panicked at src/tools/remote-test-client/src/main.rs:310:9:
client.read_exact(&mut header) failed with failed to fill whole buffer
note: run withRUST_BACKTRACE=1
environment variable to display a backtrace
error: test failed, to rerun pass--lib
Running unittests src/main.rs (build/x86_64-unknown-linux-gnu/stage0-bootstrap-tools/x86_64-unknown-linux-gnu/release/deps/rust_tidy-f166db05696a5b67)
uploaded "/home/rust/build/x86_64-unknown-linux-gnu/stage0-bootstrap-tools/x86_64-unknown-linux-gnu/release/deps/rust_tidy-f166db05696a5b67", waiting for result
thread 'main' panicked at src/tools/remote-test-client/src/main.rs:310:9:
client.read_exact(&mut header) failed with failed to fill whole buffer
note: run withRUST_BACKTRACE=1
environment variable to display a backtraceerror: test failed, to rerun pass
--bin rust-tidy
Build completed unsuccessfully in 0:17:28
I was trying to skip/disable those unit tests using Cargo.toml file in src/tools/tidy/Cargo.toml
as mentioned below(bold lines added):
My Cargo.toml file with above mentioned changes is as follows:
[package]
name = "tidy"
version = "0.1.0"
edition = "2021"
autobins = false[dependencies]
cargo_metadata = "0.15"
regex = "1"
miropt-test-tools = { path = "../miropt-test-tools" }
walkdir = "2"
ignore = "0.4.18"
semver = "1.0"
termcolor = "1.1.3"
rustc-hash = "1.1.0"[[bin]]
name = "rust-tidy"
path = "src/main.rs"
test = false[lib]
path = "src/lib.rs"
test = false
Still I see the same failures. How to disable the unit tests of a package using Cargo.toml file. Please let me know if I am missing something or doing anything wrong.
Thanks.