Page MenuHomePhabricator

[backport#14465] tests: Stop node before removing the notification file
ClosedPublic

Authored by majcosta on Jul 29 2020, 16:45.

Details

Summary

Stop node before removing the notification file (Chun Kuan Lee)

Pull request description:

Stop node before removing the notification file to make sure the command has been terminated. After then we could removing those files safely and do not receive any permission error. (See #14446)

The permission error is Windows specific, documented in python doc:
>On Windows, attempting to remove a file that is in use causes an exception to be raised

See https://docs.python.org/3/library/os.html#os.remove

https://github.com/bitcoin/bitcoin/pull/14465/commits/ca6d86c3221fbeab63f451e1fb901a68d2c4a1aa


Backport of Core PR14465

Test Plan
ninja
test_runner.py feature_notifications

Event Timeline

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

This revision is now accepted and ready to land.Jul 29 2020, 20:30