-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Fix unnecessary nesting in run-make test output directories #131764
Conversation
Some changes occurred in src/tools/compiletest cc @jieyouxu This PR modifies cc @jieyouxu |
I tested this manually, and the directory structure and up-to-date checker appear to be working as expected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested two things locally:
- That input stamping is properly preserved. I ran
./x test run-make
twice and can confirm test failures from first run (i.e. nomake
on windows) do not get incorrectly ignored on the subsequent run. - That there is no double-layering of the test output directory.
I can confirm both of these work on locally test.
Thank you!
@bors r+ rollup |
Rollup of 10 pull requests Successful merges: - rust-lang#131582 (Add wasm32-unknown-emscripten platform support document) - rust-lang#131694 (Make fuchsia-test-runner.py compatible with new JSON output from llvm-readelf) - rust-lang#131700 (Fix match_same_arms in stable_mir) - rust-lang#131712 (Mark the unstable LazyCell::into_inner const) - rust-lang#131746 (Relax a memory order in `once_box`) - rust-lang#131754 (Don't report bivariance error when nesting a struct with field errors into another struct) - rust-lang#131760 (llvm: Match aarch64 data layout to new LLVM layout) - rust-lang#131764 (Fix unnecessary nesting in run-make test output directories) - rust-lang#131766 (Add mailmap entry for my dev-desktop setup) - rust-lang#131771 (Handle gracefully true/false in `cfg(target(..))` compact) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#131764 - Zalathar:double-dir, r=jieyouxu Fix unnecessary nesting in run-make test output directories Run-make tests were using `output_base_name` to determine their output directory, which results in a redundant subdirectory (e.g. `$build/test/run-make/<foo>/<foo>/`) because that method is intended to produce the name of an individual file. The previous attempt to fix this double-nesting tried adding a special case in `output_base_dir`, which had the side-effect of breaking up-to-date checking for run-make tests, and had to be reverted in rust-lang#131681. The fix is simply to call `output_base_dir` directory, which gives the desired directory without any redundant part. r? jieyouxu
Run-make tests were using
output_base_name
to determine their output directory, which results in a redundant subdirectory (e.g.$build/test/run-make/<foo>/<foo>/
) because that method is intended to produce the name of an individual file.The previous attempt to fix this double-nesting tried adding a special case in
output_base_dir
, which had the side-effect of breaking up-to-date checking for run-make tests, and had to be reverted in #131681.The fix is simply to call
output_base_dir
directory, which gives the desired directory without any redundant part.r? jieyouxu