mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Merge f6072e601a into merged_master (Bitcoin PR #19368)
This commit is contained in:
commit
e96a115bab
2 changed files with 6 additions and 3 deletions
|
|
@ -115,6 +115,8 @@ class AuthServiceProxy():
|
|||
except OSError as e:
|
||||
retry = (
|
||||
'[WinError 10053] An established connection was aborted by the software in your host machine' in str(e))
|
||||
# Workaround for a bug on macOS. See https://bugs.python.org/issue33450
|
||||
retry = retry or ('[Errno 41] Protocol wrong type for socket' in str(e))
|
||||
if retry:
|
||||
self.__conn.close()
|
||||
self.__conn.request(method, path, postdata, headers)
|
||||
|
|
|
|||
|
|
@ -421,11 +421,12 @@ def run_tests(*, test_list, src_dir, build_dir, tmpdir, jobs=1, enable_coverage=
|
|||
args = args or []
|
||||
|
||||
# Warn if bitcoind is already running
|
||||
# pidof might fail or return an empty string if bitcoind is not running
|
||||
try:
|
||||
if subprocess.check_output(["pidof", "bitcoind"]) not in [b'']:
|
||||
# pgrep exits with code zero when one or more matching processes found
|
||||
if subprocess.run(["pgrep", "-x", "bitcoind"], stdout=subprocess.DEVNULL).returncode == 0:
|
||||
print("%sWARNING!%s There is already a bitcoind process running on this system. Tests may fail unexpectedly due to resource contention!" % (BOLD[1], BOLD[0]))
|
||||
except (OSError, subprocess.SubprocessError):
|
||||
except OSError:
|
||||
# pgrep not supported
|
||||
pass
|
||||
|
||||
# Warn if there is a cache directory
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue