Skip to content

Commit 258c177

Browse files
authored
Rollup merge of #131681 - Zalathar:fix-run-make-stamp, r=jieyouxu
Fix up-to-date checking for run-make tests This special case in `output_base_dir` had the unfortunate side-effect of causing all run-make tests to share the same `stamp` file. So as soon as any one of them succeeded, all of the failed tests would be incorrectly considered up-to-date and would no longer run in subsequent test invocations. Fixes #129971. r? jieyouxu
2 parents bd649b4 + c6e1fbf commit 258c177

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/tools/compiletest/src/common.rs

+2-8
Original file line numberDiff line numberDiff line change
@@ -759,14 +759,8 @@ pub fn output_testname_unique(
759759
/// test/revision should reside. Example:
760760
/// /path/to/build/host-triple/test/ui/relative/testname.revision.mode/
761761
pub fn output_base_dir(config: &Config, testpaths: &TestPaths, revision: Option<&str>) -> PathBuf {
762-
// In run-make tests, constructing a relative path + unique testname causes a double layering
763-
// since revisions are not supported, causing unnecessary nesting.
764-
if config.mode == Mode::RunMake {
765-
output_relative_path(config, &testpaths.relative_dir)
766-
} else {
767-
output_relative_path(config, &testpaths.relative_dir)
768-
.join(output_testname_unique(config, testpaths, revision))
769-
}
762+
output_relative_path(config, &testpaths.relative_dir)
763+
.join(output_testname_unique(config, testpaths, revision))
770764
}
771765

772766
/// Absolute path to the base filename used as output for the given

tests/run-make/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The setup for the `rmake.rs` version is a 3-stage process:
2929
structure within `build/<target>/test/run-make/`
3030

3131
```
32-
<test-name>/
32+
<test-name>/<test-name>/
3333
rmake.exe # recipe binary
3434
rmake_out/ # sources from test sources copied over
3535
```

0 commit comments

Comments
 (0)