diff options
author | Tommy Murphy <tommy_murphy@hotmail.com> | 2024-06-06 19:44:24 +0100 |
---|---|---|
committer | Tommy Murphy <tommy_murphy@hotmail.com> | 2024-06-06 19:44:24 +0100 |
commit | d3c0ecaf8629c889726a8deff1f00c4c1405101f (patch) | |
tree | f886df67645f83f95a822e0ec6d3d7a296350a1d /debug/gdbserver.py | |
parent | 8853c545d0a44430c8a714d11f18ebad6af7d3fa (diff) | |
download | riscv-tests-d3c0ecaf8629c889726a8deff1f00c4c1405101f.zip riscv-tests-d3c0ecaf8629c889726a8deff1f00c4c1405101f.tar.gz riscv-tests-d3c0ecaf8629c889726a8deff1f00c4c1405101f.tar.bz2 |
Move PRNG seed generation/logging from gdbserver.py:main() into testlib.py:run_all_tests()
Diffstat (limited to 'debug/gdbserver.py')
-rwxr-xr-x | debug/gdbserver.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/debug/gdbserver.py b/debug/gdbserver.py index 16c2b80..235814a 100755 --- a/debug/gdbserver.py +++ b/debug/gdbserver.py @@ -11,7 +11,6 @@ import os import re import itertools -from datetime import datetime import targets import testlib from testlib import assertEqual, assertNotEqual @@ -2213,16 +2212,6 @@ def main(): module = sys.modules[__name__] - # initialize PRNG - selected_seed = parsed.seed - if parsed.seed is None: - selected_seed = int(datetime.now().timestamp()) - 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) # TROUBLESHOOTING TIPS |