Page MenuHomePhabricator

Merge #12904: [qa] Ensure bitcoind processes are cleaned up when tests end
ClosedPublic

Authored by nakihito on Jun 6 2019, 18:21.

Details

Summary

e36a0c0 [qa] Ensure bitcoind processes are cleaned up when tests end (Suhas Daftuar)

Pull request description:

When tests fail (such as due to a bug in the test, race condition, etc), it's possible that we could follow code paths that bypass our normal node shutdown that occurs in `TestNode.stop_node`.  Add a destructor to `TestNode` that cleans this up.

Tree-SHA512: 72e04bc21462ebd0cb346fd1fe0540da454acfbad41923a0b06ea2317e9045b68e58f9adb02d8200891aca89a9d03a022eb72282aeb31a3b3afe7c6843a4b450

Backport of Core PR12904
https://github.com/bitcoin/bitcoin/pull/12904/

Depends on D3234

Completes T446

Test Plan
make check
test_runner.py

Diff Detail

Repository
rABC Bitcoin ABC
Branch
PR12904
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 6190
Build 10427: Bitcoin ABC Buildbot (legacy)
Build 10426: arc lint + arc unit

Event Timeline

Owners added a reviewer: Restricted Owners Package.Jun 6 2019, 18:21
jasonbcox requested changes to this revision.Jun 6 2019, 18:35
jasonbcox added inline comments.
test/functional/test_framework/test_node.py
99 ↗(On Diff #9194)

Move comment on line above this one

This revision now requires changes to proceed.Jun 6 2019, 18:35

Rebased and fixed comment placement.

This revision is now accepted and ready to land.Jun 6 2019, 23:11