Skip to content

Commit

Permalink
Suppress 'PRNG seed ...' log messages when --list-tests is specified;…
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyMurphyTM1234 committed Jun 6, 2024
1 parent 8f9c68e commit 8853c54
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions debug/gdbserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -2217,8 +2217,10 @@ def main():
selected_seed = parsed.seed
if parsed.seed is None:
selected_seed = int(datetime.now().timestamp())
print(f"PRNG seed for {target.name} is generated automatically")
print(f"PRNG seed for {target.name} is {selected_seed}")
if parsed.list_tests is None:
print(f"PRNG seed for {target.name} is generated automatically")
if parsed.list_tests is None:
print(f"PRNG seed for {target.name} is {selected_seed}")
random.seed(selected_seed)

return testlib.run_all_tests(module, target, parsed)
Expand Down

0 comments on commit 8853c54

Please sign in to comment.