Skip to content

Commit 11200b3

Browse files
committed
ci: x86_64-gnu-tools: Add --test-args regression test
1 parent f3fd3ef commit 11200b3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/ci/docker/host-x86_64/x86_64-gnu-tools/checktools.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,10 @@ cat /tmp/toolstate/toolstates.json
3030
python3 "$X_PY" test --stage 2 check-tools
3131
python3 "$X_PY" test --stage 2 src/tools/clippy
3232
python3 "$X_PY" test --stage 2 src/tools/rustfmt
33+
34+
# The below is a regression test for https://github.com/rust-lang/rust/pull/146501#issuecomment-3292608398.
35+
# The bug caused 0 tests to run. By grepping on that 1 test is run we prevent regressing.
36+
# Any test can be used. We arbitrarily chose `tests/ui/lint/unused/unused-result.rs`.
37+
python3 "$X_PY" test tests/ui --test-args tests/ui/lint/unused/unused-result.rs --force-rerun |
38+
grep --fixed-strings 'test result: ok. 1 passed; 0 failed; 0 ignored;' ||
39+
( echo "ERROR: --test-args functionality is broken" && exit 1 )

0 commit comments

Comments
 (0)