Skip to content

Commit

Permalink
Tests: Remove custom directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Bushstar committed Apr 30, 2021
1 parent 7e64ffc commit 3f47d86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/functional/test_framework/test_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,9 @@ def cache_path(*paths):
os.remove(cache_path('wallets', entry))
os.rmdir(cache_path('wallets')) # Remove empty wallets dir

# Remove custom dirs
shutil.rmtree(cache_path('burn'))

for entry in os.listdir(cache_path()):
if entry not in ['chainstate', 'blocks', 'enhancedcs', 'anchors', 'criminals', 'history']: # Only keep chainstate and blocks folder
os.remove(cache_path(entry))
Expand Down

0 comments on commit 3f47d86

Please sign in to comment.