diff options
author | Tim Newsome <tim@sifive.com> | 2023-06-23 17:07:09 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2023-07-17 09:34:55 -0700 |
commit | 1754ac49dc90ee99a8452aeca5fe218b54e03f18 (patch) | |
tree | 46ebbc7a1e6262833b4452f90fd71e5fadfdb4ee | |
parent | ed0a63ea4ffea691e753ba1410d78961b80dc739 (diff) | |
download | riscv-tests-1754ac49dc90ee99a8452aeca5fe218b54e03f18.zip riscv-tests-1754ac49dc90ee99a8452aeca5fe218b54e03f18.tar.gz riscv-tests-1754ac49dc90ee99a8452aeca5fe218b54e03f18.tar.bz2 |
Move `import random`
Just so it's easier to quickly comment out code and hard-code the target
to use without pylint complaining. This really should be a command line
option.
-rw-r--r-- | debug/testlib.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/debug/testlib.py b/debug/testlib.py index 2155e05..8962ae3 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -1,7 +1,6 @@ import collections import os import os.path -import random import re import shlex import subprocess @@ -1136,7 +1135,9 @@ class BaseTest: if hart: self.hart = hart else: + import random # pylint: disable=import-outside-toplevel self.hart = random.choice(target.harts) + #self.hart = target.harts[-1] self.server = None self.target_process = None self.binary = None |