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

Fix x.py test for librustc crates. #74153

Merged
merged 2 commits into from
Jul 8, 2020

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Jul 8, 2020

#73352 introduced a bug where x.py test src/librustc_ast would fail to actually run the tests. The issue is that krate and all_krates were changed to return relative paths. This caused the code to do a test of "relative_path ends with absolute path" which is always false. The solution is to swap that around.

The change to Crate isn't necessary, it just simplifies the code and makes it uniform with CrateLibrustc.

@rust-highfive
Copy link
Collaborator

r? @Mark-Simulacrum

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 8, 2020
@Mark-Simulacrum
Copy link
Member

Looks like as a result some tests are failing :/

r=me on the patch though.

@ehuss
Copy link
Contributor Author

ehuss commented Jul 8, 2020

@bors r=Mark-Simulacrum

@bors
Copy link
Contributor

bors commented Jul 8, 2020

📌 Commit 7238726 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 Jul 8, 2020
@Mark-Simulacrum
Copy link
Member

@bors p=20 we should get tests running as quickly as possible to prevent further regressions

Manishearth added a commit to Manishearth/rust that referenced this pull request Jul 8, 2020
…r=Mark-Simulacrum

Fix x.py test for librustc crates.

rust-lang#73352 introduced a bug where `x.py test src/librustc_ast` would fail to actually run the tests. The issue is that `krate` and `all_krates` were changed to return relative paths. This caused the code to do a test of "relative_path ends with absolute path" which is always false.  The solution is to swap that around.

The change to `Crate` isn't necessary, it just simplifies the code and makes it uniform with `CrateLibrustc`.
@bors
Copy link
Contributor

bors commented Jul 8, 2020

⌛ Testing commit 7238726 with merge 8aa18cb...

@bors
Copy link
Contributor

bors commented Jul 8, 2020

☀️ Test successful - checks-actions, checks-azure
Approved by: Mark-Simulacrum
Pushing 8aa18cb to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jul 8, 2020
@bors bors merged commit 8aa18cb into rust-lang:master Jul 8, 2020
@cuviper cuviper added this to the 1.46 milestone May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. 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.

5 participants