From a0d09eb503b158e82c92a74587f572670fa973c4 Mon Sep 17 00:00:00 2001 From: Hodlinator <172445034+hodlinator@users.noreply.github.com> Date: Thu, 29 Aug 2024 09:13:37 +0200 Subject: [PATCH] fuzz: Make test_runner pass through RANDOM_CTX_SEED if set --- test/fuzz/test_runner.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/fuzz/test_runner.py b/test/fuzz/test_runner.py index 9917eca75ae9d3..d6bbfc2690b232 100755 --- a/test/fuzz/test_runner.py +++ b/test/fuzz/test_runner.py @@ -31,6 +31,10 @@ def get_fuzz_env(*, target, source_dir): if platform.system() == "Windows": # On Windows, `env` option must include valid `SystemRoot`. fuzz_env = {**fuzz_env, 'SystemRoot': os.environ.get('SystemRoot')} + random_seed = os.environ.get('RANDOM_CTX_SEED') + if random_seed: + fuzz_env['RANDOM_CTX_SEED'] = random_seed + return fuzz_env