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 package::include/exclude tests so they work even if running them not in cargo.git #6260

Merged
merged 1 commit into from
Nov 5, 2018

Conversation

infinity0
Copy link
Contributor

Otherwise they fail due to mismatching error messages like here https://buildd.debian.org/status/fetch.php?pkg=cargo&arch=all&ver=0.31.0-1%7Eexp1&stamp=1541336261&raw=0 - we don't run cargo test from inside cargo.git but an unpacked tarball.

The test is brittle and only works if the surrounding crate is already inside a git repo but the test-case itself is not. This fixes that by putting the test case inside its own git repo.

@ehuss
Copy link
Contributor

ehuss commented Nov 4, 2018

👍 I ran into this a couple days ago, so I think it's great to get it fixed. For context, this was caused by the warning added in #5858.

@infinity0
Copy link
Contributor Author

ping @dekellum FYI

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Nov 5, 2018

📌 Commit dd998a0 has been approved by alexcrichton

bors added a commit that referenced this pull request Nov 5, 2018
Fix package::include/exclude tests so they work even if running them not in cargo.git

Otherwise they fail due to mismatching error messages like here https://buildd.debian.org/status/fetch.php?pkg=cargo&arch=all&ver=0.31.0-1%7Eexp1&stamp=1541336261&raw=0 - we don't run `cargo test` from inside `cargo.git` but an unpacked tarball.

The test is brittle and only works if the surrounding crate is already inside a git repo but the test-case itself is not. This fixes that by putting the test case inside its own git repo.
@bors
Copy link
Contributor

bors commented Nov 5, 2018

⌛ Testing commit dd998a0 with merge d278915...

@bors
Copy link
Contributor

bors commented Nov 5, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing d278915 to master...

@bors bors merged commit dd998a0 into rust-lang:master Nov 5, 2018
@ehuss ehuss added this to the 1.32.0 milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants