aboutsummaryrefslogtreecommitdiff
path: root/debug/testlib.py
diff options
context:
space:
mode:
authorRichard Xia <richardxia@richardxia.com>2016-08-22 18:16:53 -0700
committerRichard Xia <richardxia@richardxia.com>2016-08-22 18:16:53 -0700
commit03c18639caa0c26bb58e81d20cc05175011b313e (patch)
treee34713be5f9326d897adaf6ce768c8cb0fadf45e /debug/testlib.py
parent6a2e45157df2e4c20540be04e42f9ff13a5ce7f8 (diff)
downloadriscv-tests-03c18639caa0c26bb58e81d20cc05175011b313e.zip
riscv-tests-03c18639caa0c26bb58e81d20cc05175011b313e.tar.gz
riscv-tests-03c18639caa0c26bb58e81d20cc05175011b313e.tar.bz2
Add requirements.txt and reorder imports by type.
Diffstat (limited to 'debug/testlib.py')
-rw-r--r--debug/testlib.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/debug/testlib.py b/debug/testlib.py
index 99c4a76..c186a17 100644
--- a/debug/testlib.py
+++ b/debug/testlib.py
@@ -1,17 +1,17 @@
import os.path
-import pexpect
import shlex
import subprocess
import tempfile
-import testlib
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):
- 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