From 81cd28b4d6f05bf1886e2f89988231ece5584e39 Mon Sep 17 00:00:00 2001 From: Dakoda Greaves Date: Fri, 19 Jan 2024 16:09:19 -0800 Subject: [PATCH] rpctest: split up commands to be run manually --- rpctest/cleanup.py | 19 +++++++++++++++++++ rpctest/fetch.py | 19 ------------------- 2 files changed, 19 insertions(+), 19 deletions(-) create mode 100644 rpctest/cleanup.py diff --git a/rpctest/cleanup.py b/rpctest/cleanup.py new file mode 100644 index 000000000..719c7bb19 --- /dev/null +++ b/rpctest/cleanup.py @@ -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)) diff --git a/rpctest/fetch.py b/rpctest/fetch.py index 98e13a6fd..6bcf49268 100755 --- a/rpctest/fetch.py +++ b/rpctest/fetch.py @@ -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))