mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-05 12:40:16 +02:00
fuzz: Remove unused TimeoutExpired catch in fuzz runner
Can be reviewed with --ignore-all-space
This commit is contained in:
parent
14b8dfb2bd
commit
fa4804009c
@ -151,24 +151,21 @@ def main():
|
||||
)
|
||||
logging.info("Please consider adding a fuzz corpus at https://github.com/bitcoin-core/qa-assets")
|
||||
|
||||
try:
|
||||
help_output = subprocess.run(
|
||||
args=[
|
||||
fuzz_bin,
|
||||
'-help=1',
|
||||
],
|
||||
env=get_fuzz_env(target=test_list_selection[0], source_dir=config['environment']['SRCDIR']),
|
||||
timeout=20,
|
||||
check=False,
|
||||
stderr=subprocess.PIPE,
|
||||
text=True,
|
||||
).stderr
|
||||
using_libfuzzer = "libFuzzer" in help_output
|
||||
if (args.generate or args.m_dir) and not using_libfuzzer:
|
||||
logging.error("Must be built with libFuzzer")
|
||||
sys.exit(1)
|
||||
except subprocess.TimeoutExpired:
|
||||
logging.error("subprocess timed out: Currently only libFuzzer is supported")
|
||||
print("Check if using libFuzzer ... ", end='')
|
||||
help_output = subprocess.run(
|
||||
args=[
|
||||
fuzz_bin,
|
||||
'-help=1',
|
||||
],
|
||||
env=get_fuzz_env(target=test_list_selection[0], source_dir=config['environment']['SRCDIR']),
|
||||
check=False,
|
||||
stderr=subprocess.PIPE,
|
||||
text=True,
|
||||
).stderr
|
||||
using_libfuzzer = "libFuzzer" in help_output
|
||||
print(using_libfuzzer)
|
||||
if (args.generate or args.m_dir) and not using_libfuzzer:
|
||||
logging.error("Must be built with libFuzzer")
|
||||
sys.exit(1)
|
||||
|
||||
with ThreadPoolExecutor(max_workers=args.par) as fuzz_pool:
|
||||
|
Loading…
x
Reference in New Issue
Block a user