projects
/
riscv-tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add requirements.txt and reorder imports by type.
[riscv-tests.git]
/
debug
/
testlib.py
diff --git
a/debug/testlib.py
b/debug/testlib.py
index 99c4a7628b0188568d98a0be9898dd4c5dc3d0e0..c186a175a5cc9d50a8c26d7c49618fa474dd6e2f 100644
(file)
--- a/
debug/testlib.py
+++ b/
debug/testlib.py
@@
-1,17
+1,17
@@
import os.path
import os.path
-import pexpect
import shlex
import subprocess
import tempfile
import shlex
import subprocess
import tempfile
-import testlib
import unittest
import time
import unittest
import time
+import pexpect
+
# Note that gdb comes with its own testsuite. I was unable to figure out how to
# run that testsuite against the spike simulator.
def find_file(path):
# Note that gdb comes with its own testsuite. I was unable to figure out how to
# run that testsuite against the spike simulator.
def find_file(path):
- for directory in (os.getcwd(), os.path.dirname(
testlib.
__file__)):
+ for directory in (os.getcwd(), os.path.dirname(__file__)):
fullpath = os.path.join(directory, path)
if os.path.exists(fullpath):
return fullpath
fullpath = os.path.join(directory, path)
if os.path.exists(fullpath):
return fullpath