Skip to content
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

bootstrap/libtest: print test name eagerly on failure even with verbose-tests=false / --quiet #113518

Merged
merged 2 commits into from
Mar 6, 2024

Commits on Mar 5, 2024

  1. bootstrap: print test name on failure even with verbose-tests=false

    This makes it much easier to know which test failed without having to wait for compiletest to completely finish running. Before:
    ```
    Testing stage0 compiletest suite=ui mode=ui (x86_64-unknown-linux-gnu)
    
    running 15274 tests
    iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii    88/15274
    iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii   176/15274
    iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii   264/15274
    iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii   352/15274
    iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii   440/15274
    iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii   528/15274
    iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFFiiiiiii
    ...
    ```
    
    After:
    ```
    Testing stage0 compiletest suite=ui mode=ui (x86_64-unknown-linux-gnu)
    
    running 15274 tests
    iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii    88/15274
    iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii   176/15274
    iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii   264/15274
    iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii   352/15274
    iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii   440/15274
    iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii   528/15274
    iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
    [ui] tests/ui/associated-type-bounds/implied-in-supertrait.rs ... F
    
    [ui] tests/ui/associated-type-bounds/return-type-notation/basic.rs#next_with ... F
    iiiiiiiiiiiii
    ...
    ```
    
    This serves a similar use case to the existing RUSTC_TEST_FAIL_FAST, but is on by default and as a result much more discoverable.
    We should consider unifying RUSTC_TEST_FAIL_FAST with the `--no-fail-fast` flag in the future for consistency and discoverability.
    jyn514 committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    678e217 View commit details
    Browse the repository at this point in the history
  2. libtest: Print the names of failed tests eagerly

    Previously, libtest would wait until all tests finished running to print the progress, which made it
    annoying to run many tests at once (since you don't know which have failed). Change it to print the
    names as soon as they fail.
    
    This also adds a test for the terse output; previously it was untested.
    jyn514 committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    8bfe9db View commit details
    Browse the repository at this point in the history