-
Notifications
You must be signed in to change notification settings - Fork 13.8k
ci: x86_64-gnu-tools: Add --test-args
regression test
#146606
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
Conversation
e8fce89
to
457aa93
Compare
This comment has been minimized.
This comment has been minimized.
457aa93
to
8368fd9
Compare
--test-args
regression test
This comment has been minimized.
This comment has been minimized.
8368fd9
to
11200b3
Compare
This comment has been minimized.
This comment has been minimized.
The test run was without the fix. So the test catches the bug, because the test fails without the fix. From the log:
I will now rebase on master which has the fix. So if the test then passes, we know the test works as intended. |
11200b3
to
91cf067
Compare
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
The test passed after rebasing on the fix. So the test works and would have caught the bug (and will prevent regressions). @rustbot ready |
# 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 ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, I was thinking of more of a unit test directly in compiletest, but I think this seems OK too.
@bors r+ rollup |
…ulacrum ci: x86_64-gnu-tools: Add `--test-args` regression test See rust-lang#146601 (comment) r? `@Mark-Simulacrum`
Rollup of 4 pull requests Successful merges: - #143857 (Port #[macro_export] to the new attribute parsing infrastructure) - #146486 (Improve `core::sync::atomic` coverage) - #146606 (ci: x86_64-gnu-tools: Add `--test-args` regression test) - #146639 (std: merge definitions of `StdioPipes`) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #146606 - Enselic:test-test-args, r=Mark-Simulacrum ci: x86_64-gnu-tools: Add `--test-args` regression test See #146601 (comment) r? ``@Mark-Simulacrum``
…ulacrum ci: x86_64-gnu-tools: Add `--test-args` regression test See rust-lang#146601 (comment) r? ``@Mark-Simulacrum``
…iaskrgr Rollup of 4 pull requests Successful merges: - rust-lang#143857 (Port #[macro_export] to the new attribute parsing infrastructure) - rust-lang#146486 (Improve `core::sync::atomic` coverage) - rust-lang#146606 (ci: x86_64-gnu-tools: Add `--test-args` regression test) - rust-lang#146639 (std: merge definitions of `StdioPipes`) r? `@ghost` `@rustbot` modify labels: rollup
See #146601 (comment)
r? @Mark-Simulacrum