Skip to content

Move panic test to top of script #432

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

Merged
merged 1 commit into from
Mar 30, 2022

Conversation

tcharding
Copy link
Member

In test.sh we have a test that checks for a panic by greping the output of cargo test --exact 'tests::test_panic_raw_ctx_should_terminate_abnormally'. If we put this test at the top of the script right after we run cargo test we are guaranteed to not trigger a re-build.

Note to reviewers

I just noticed this patch somehow snuck into #420, all other changes in that PR are to .github/workflows/rust.yml so this change does not fit in there. Hence raising it as a separate PR.

The test that checks for a panic uses `cargo test --exact`, it makes
sense to put it at the top of the script right after we run `cargo test`
so we can run the test without triggering a re-build.
@tcharding tcharding mentioned this pull request Mar 29, 2022
Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

ACK d2e1f8c

@apoelstra apoelstra merged commit 2ce67d9 into rust-bitcoin:master Mar 30, 2022
@tcharding tcharding deleted the contrib-move-panic-test branch March 31, 2022 04:43
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.

2 participants