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

rpctest: Cleanup resources on failed setup. #759

Merged
merged 4 commits into from
Jul 22, 2017

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Jul 21, 2017

This contains the following upstream commits:

  • 5e93b16
    • This commit originated from downstream so it is a NOOP
  • 0ddd10a
    • This commit has been reverted since it has already been done.
  • fb90c33

This modifies the rpctest harness to call the TearDown function in the SetUp error path. This ensures any resources, such as temp directories, that were created during setup before whatever the failure that caused the error are properly cleaned up.

marcopeereboom and others added 4 commits September 12, 2016 02:21
This corrects the case where any errors that might have happened when
creating the config file were not being displayed due to the logging
system not being initialized yet.

While here, consistently use fmt.Fprint{f,ln} throughout the loadConfig
function even after the logging system is initialized since it will
help prevent copy/paste errors such as the one that induced this change
to begin with.
This modifies the rpctest harness to call the TearDown function in the
SetUp error path.  This ensures any resources, such as temp directories,
that were created during setup before whatever the failure that caused
the error are properly cleaned up.
This contains the following upstream commits:
- 5e93b16
  - This commit originated from downstream so it is a NOOP
- 0ddd10a
  - This commit has been reverted since it has already been done.
- fb90c33
Copy link
Member

@dajohi dajohi left a comment

Choose a reason for hiding this comment

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

OK

@davecgh davecgh merged commit 823cbed into decred:master Jul 22, 2017
@davecgh davecgh deleted the merge_rpctest_cleanup_on_setup_fail branch July 22, 2017 03:28
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.

4 participants