-
Notifications
You must be signed in to change notification settings - Fork 93
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 false-negative test case for __bp_install #151
Conversation
This is an oversight of changing `trap DEBUG` to `trap - DEBUG` in rcaloras#106 The oversight did not cause a test error because the test always succeeds. The problem is that even if __bp_install is broken and fails to remove `trap - DEBUG`, the current test case failed to detect the failure and produce a false negative. This patch fixes it.
Thanks for spotting this!
Is it possible to update the test to detect this? |
Maybe I'm confused or I confused you with my poor explanation, but this PR does that, i.e., to make the test case properly detect that (when it is broken in the future, i.e., the main code is not broken currently). This PR fixes a test case in |
Yeah sorry if that wasn't clear. What I'm suggesting is that since the test passes both prior to this change and with it, the test is still brittle ( Alternatively, we could pull the two strings |
Ah, I see. Thank you for your clarification!
It is actually another part of #129. We already have the variable |
I added a commit 8913ea5. Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Suggested a comment but otherwise LGTM.
Co-authored-by: Michael Diamond <[email protected]>
42e93b4
to
99d05b9
Compare
Thanks! I've applied the suggestion with a line break added. |
This is an oversight of changing
trap DEBUG
totrap - DEBUG
in#106
The oversight did not cause a test error because the test always succeeds. The problem is that even if __bp_install is broken and fails to remove
trap - DEBUG
, the current test case failed to detect the failure and produce a false negative. This PR fixes it.This fix was first discussed in PR #129 and included as a part of PR #129. However, a reviewer doesn't seem to appear for PR #129, and PR #129 doesn't seem to be going to be merged currently. Because this fix is so trivial that I don't think there is a reason to block further, I separate the fix as an independent PR here.