Skip to content

Commit 47cedee

Browse files
committed
fuzz: Introduce BITCOINFUZZ environment variable
The `BITCOINFUZZ` environment variable allows to override the default path to the fuzz binary. It complements the already existing set of variables used by tests: - BITCOIND - BITCOINCLI - BITCOINUTIL - BITCOINWALLET
1 parent 1573e9a commit 47cedee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/fuzz/test_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def main():
104104
logging.error("Must have fuzz executable built")
105105
sys.exit(1)
106106

107-
fuzz_bin=os.path.join(config["environment"]["BUILDDIR"], 'src', 'test', 'fuzz', 'fuzz')
107+
fuzz_bin=os.getenv("BITCOINFUZZ", default=os.path.join(config["environment"]["BUILDDIR"], 'src', 'test', 'fuzz', 'fuzz'))
108108

109109
# Build list of tests
110110
test_list_all = parse_test_list(

0 commit comments

Comments
 (0)