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

Support -Z ui-testing=yes/no #67735

Merged
merged 1 commit into from
Dec 31, 2019
Merged

Support -Z ui-testing=yes/no #67735

merged 1 commit into from
Dec 31, 2019

Conversation

petrochenkov
Copy link
Contributor

ui-testing is now a boolean option (-Z ui-testing=yes/no) and can be specified multiple times with later values overriding earlier values (-Z ui-testing=yes -Z ui-testing=no == -Z ui-testing=no), so it can be set in a hierarchical way, e.g. UI testing infra may enable it by default with specific tests being able to opt-out.

This way we can remove the special opt-out support from compiletest.

Inspired by #67709.

@petrochenkov petrochenkov added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 30, 2019
@Mark-Simulacrum
Copy link
Member

@bors r+ code wise

I think we generally prefer to shy away from such options -- do we have something pre-existing which we can cite here? I'm okay with this since it's an unstable flag intended purely for internal usage (i.e., not even nightly users should really be reaching for this).

@bors
Copy link
Contributor

bors commented Dec 30, 2019

📌 Commit 208c1bf has been approved by Mark-Simulacrum

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 30, 2019
@petrochenkov
Copy link
Contributor Author

@Mark-Simulacrum

do we have something pre-existing which we can cite here?

At least anything using parse_opt_bool.
Also, optimization options like -O2, IIRC.

Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Dec 31, 2019
Support `-Z ui-testing=yes/no`

`ui-testing` is now a boolean option (`-Z ui-testing=yes/no`) and can be specified multiple times with later values overriding earlier values (`-Z ui-testing=yes -Z ui-testing=no` == `-Z ui-testing=no`), so it can be set in a hierarchical way, e.g. UI testing infra may enable it by default with specific tests being able to opt-out.

This way we can remove the special opt-out support from `compiletest`.

Inspired by rust-lang#67709.
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Dec 31, 2019
Support `-Z ui-testing=yes/no`

`ui-testing` is now a boolean option (`-Z ui-testing=yes/no`) and can be specified multiple times with later values overriding earlier values (`-Z ui-testing=yes -Z ui-testing=no` == `-Z ui-testing=no`), so it can be set in a hierarchical way, e.g. UI testing infra may enable it by default with specific tests being able to opt-out.

This way we can remove the special opt-out support from `compiletest`.

Inspired by rust-lang#67709.
bors added a commit that referenced this pull request Dec 31, 2019
Rollup of 5 pull requests

Successful merges:

 - #67430 (doc: minus (U+2212) instead of dash (U+002D) for negative infinity)
 - #67697 (Move the region_scope_tree query to librustc_passes.)
 - #67719 (Add self to .mailmap)
 - #67723 (Add error code explanation for E0477)
 - #67735 (Support `-Z ui-testing=yes/no`)

Failed merges:

r? @ghost
@bors bors merged commit 208c1bf into rust-lang:master Dec 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants