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

add debuginfo to test --release #43

Merged
merged 1 commit into from Feb 24, 2021
Merged

add debuginfo to test --release #43

merged 1 commit into from Feb 24, 2021

Conversation

japaric
Copy link
Member

@japaric japaric commented Feb 24, 2021

executable build with cargo test --release are built with the bench profile. By default, this profile is similar to the default release profile so it has debug = 0. The result is that cargo test --release results in (1) log messages having no location information and (2) knurling-rs/probe-run#9, which makes the process exit with nonzero exit code even when all test fails.

this PR overrides the bench profile to match the release profile override. This fixes above issues.

Copy link
Contributor

@jonas-schievink jonas-schievink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors r+

@jonas-schievink
Copy link
Contributor

Feel free to merge after fixing the merge conflicts

@japaric
Copy link
Member Author

japaric commented Feb 24, 2021

bors r=jonas-schievink

@japaric japaric merged commit 08ebad9 into main Feb 24, 2021
@japaric japaric deleted the test-release-debuginfo branch February 24, 2021 14:27
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.

None yet

2 participants