Skip to content

Commit

Permalink
fuzz: Make test_runner pass through RANDOM_CTX_SEED if set
Browse files Browse the repository at this point in the history
  • Loading branch information
hodlinator committed Nov 14, 2024
1 parent 5cc184d commit a0d09eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/fuzz/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit a0d09eb

Please sign in to comment.