x.py test --bless tidy step does not work outside of root dir #122202
Labels
C-bug
Category: This is a bug.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
I tried this: In a subdirectory
root/objdir/
, after a successful build, I then did../x.py test --stage 1 --bless
I expected to see this happen: The test files that need updating get updated.
Instead, this happened: tidy panicked
I believe this is because of this code, which seems to contain an assumption that the current_dir will be the root of the source tree, which is not true in general for
x.py
:rust/src/tools/tidy/src/ui_tests.rs
Line 187 in 74acabe
The text was updated successfully, but these errors were encountered: