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 considered up-to-date and would no longer run in subsequent test invocations.
This commit is contained in:
parent
f6648f252a
commit
c6e1fbf8eb
@ -759,14 +759,8 @@ pub fn output_testname_unique(
|
|||||||
/// test/revision should reside. Example:
|
/// test/revision should reside. Example:
|
||||||
/// /path/to/build/host-triple/test/ui/relative/testname.revision.mode/
|
/// /path/to/build/host-triple/test/ui/relative/testname.revision.mode/
|
||||||
pub fn output_base_dir(config: &Config, testpaths: &TestPaths, revision: Option<&str>) -> PathBuf {
|
pub fn output_base_dir(config: &Config, testpaths: &TestPaths, revision: Option<&str>) -> PathBuf {
|
||||||
// In run-make tests, constructing a relative path + unique testname causes a double layering
|
output_relative_path(config, &testpaths.relative_dir)
|
||||||
// since revisions are not supported, causing unnecessary nesting.
|
.join(output_testname_unique(config, testpaths, revision))
|
||||||
if config.mode == Mode::RunMake {
|
|
||||||
output_relative_path(config, &testpaths.relative_dir)
|
|
||||||
} else {
|
|
||||||
output_relative_path(config, &testpaths.relative_dir)
|
|
||||||
.join(output_testname_unique(config, testpaths, revision))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Absolute path to the base filename used as output for the given
|
/// Absolute path to the base filename used as output for the given
|
||||||
|
@ -29,7 +29,7 @@ The setup for the `rmake.rs` version is a 3-stage process:
|
|||||||
structure within `build/<target>/test/run-make/`
|
structure within `build/<target>/test/run-make/`
|
||||||
|
|
||||||
```
|
```
|
||||||
<test-name>/
|
<test-name>/<test-name>/
|
||||||
rmake.exe # recipe binary
|
rmake.exe # recipe binary
|
||||||
rmake_out/ # sources from test sources copied over
|
rmake_out/ # sources from test sources copied over
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user