diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-09-21 22:20:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-21 22:20:26 +0200 |
| commit | af315d3027ec0a77eedc18b9a82bc43829fe1200 (patch) | |
| tree | 475220745692671173a8dd524f6d32fae3bfbecb /src | |
| parent | c0f5eefa27797549d5965c50b06c04f93433a03a (diff) | |
| parent | 91cf067f7174eac7ec0492e829bcbb844d4471d7 (diff) | |
| download | rust-af315d3027ec0a77eedc18b9a82bc43829fe1200.tar.gz rust-af315d3027ec0a77eedc18b9a82bc43829fe1200.zip | |
Rollup merge of #146606 - Enselic:test-test-args, r=Mark-Simulacrum
ci: x86_64-gnu-tools: Add `--test-args` regression test See https://github.com/rust-lang/rust/pull/146601#issuecomment-3293179561 r? ``@Mark-Simulacrum``
Diffstat (limited to 'src')
| -rwxr-xr-x | src/ci/docker/host-x86_64/x86_64-gnu-tools/checktools.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ci/docker/host-x86_64/x86_64-gnu-tools/checktools.sh b/src/ci/docker/host-x86_64/x86_64-gnu-tools/checktools.sh index ff9fedad656..14cf63b94d4 100755 --- a/src/ci/docker/host-x86_64/x86_64-gnu-tools/checktools.sh +++ b/src/ci/docker/host-x86_64/x86_64-gnu-tools/checktools.sh @@ -30,3 +30,10 @@ cat /tmp/toolstate/toolstates.json python3 "$X_PY" test --stage 2 check-tools python3 "$X_PY" test --stage 2 src/tools/clippy python3 "$X_PY" test --stage 2 src/tools/rustfmt + +# The below is a regression test for https://github.com/rust-lang/rust/pull/146501#issuecomment-3292608398. +# The bug caused 0 tests to run. By grepping on that 1 test is run we prevent regressing. +# Any test can be used. We arbitrarily chose `tests/ui/lint/unused/unused-result.rs`. +python3 "$X_PY" test tests/ui --test-args tests/ui/lint/unused/unused-result.rs --force-rerun | +grep --fixed-strings 'test result: ok. 1 passed; 0 failed; 0 ignored;' || +( echo "ERROR: --test-args functionality is broken" && exit 1 ) |
