Skip to content

compiletest: changes in compiletest does not trigger test rerun #56280

Closed
@vakaras

Description

@vakaras

If I modify a file in the rustc source code (src/librustc_c*), ./x.py test is smart enough to rerun all tests. However, if I modify something in src/tools/compiletest, then ./x.py test still ignores the tests that completed successfully in the previous run.

Steps to reproduce:

  1. Run tests:
git clone git@github.com:rust-lang/rust.git
./x.py test
  1. Modify compiletest. For example, replace the expected_output_path function in runtest.rs with:
    fn expected_output_path(&self, _kind: &str) -> PathBuf {
        panic!();
    }
  1. Run tests again:
./x.py test

Expected output: some tests fail.

Actual output:

Build completed successfully in 0:13:13

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testsuiteArea: The testsuite used to check the correctness of rustcC-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions