Skip to content

Commit 738a537

Browse files
committed
[fuzz] Apply fuzz env (suppressions, etc.) when fetching harness list
1 parent 59567d7 commit 738a537

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/fuzz/test_runner.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ def main():
105105
sys.exit(1)
106106

107107
# Build list of tests
108-
test_list_all = parse_test_list(fuzz_bin=os.path.join(config["environment"]["BUILDDIR"], 'src', 'test', 'fuzz', 'fuzz'))
108+
test_list_all = parse_test_list(
109+
fuzz_bin=os.path.join(config["environment"]["BUILDDIR"], 'src', 'test', 'fuzz', 'fuzz'),
110+
source_dir=config['environment']['SRCDIR'],
111+
)
109112

110113
if not test_list_all:
111114
logging.error("No fuzz targets found")
@@ -383,11 +386,12 @@ def job(t, args):
383386
print(f"{t}{s}")
384387

385388

386-
def parse_test_list(*, fuzz_bin):
389+
def parse_test_list(*, fuzz_bin, source_dir):
387390
test_list_all = subprocess.run(
388391
fuzz_bin,
389392
env={
390-
'PRINT_ALL_FUZZ_TARGETS_AND_ABORT': ''
393+
'PRINT_ALL_FUZZ_TARGETS_AND_ABORT': '',
394+
**get_fuzz_env(target="", source_dir=source_dir)
391395
},
392396
stdout=subprocess.PIPE,
393397
text=True,

0 commit comments

Comments
 (0)