Skip to content

Commit

Permalink
rpctest: split up commands to be run manually
Browse files Browse the repository at this point in the history
  • Loading branch information
xanimo committed Jan 20, 2024
1 parent 4250535 commit dd71f79
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
19 changes: 19 additions & 0 deletions rpctest/cleanup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/python3

import os
import glob
import shutil

rmlist = ['./dogecoin-*', 'dogecoind', '*.tar.gz', '*.zip', '*.asc']
for path in rmlist:
for name in glob.glob(path):
if os.path.isdir(name):
try:
shutil.rmtree(name)
except OSError as e:
print("Error: %s : %s" % (name, e.strerror))
if os.path.isfile(name):
try:
os.remove(name)
except OSError as e:
print("Error: %s : %s" % (name, e.strerror))
19 changes: 0 additions & 19 deletions rpctest/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,22 +100,3 @@
src_path = os.path.join(os.getcwd(), src)
dst_path = os.path.join(os.getcwd(), f)
shutil.move(src_path, dst_path)

result = subprocess.run([os.path.join(os.getcwd(), "rpctest/path.sh")])
if result.returncode == 0:
subprocess.run([os.path.join(os.getcwd(), "rpctest/spvtool.py")])


rmlist = ['./dogecoin-*', 'dogecoind', '*.tar.gz', '*.zip', '*.asc']
for path in rmlist:
for name in glob.glob(path):
if os.path.isdir(name):
try:
shutil.rmtree(name)
except OSError as e:
print("Error: %s : %s" % (name, e.strerror))
if os.path.isfile(name):
try:
os.remove(name)
except OSError as e:
print("Error: %s : %s" % (name, e.strerror))

0 comments on commit dd71f79

Please sign in to comment.