summaryrefslogtreecommitdiff
path: root/rtemstoolkit/solaris.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2018-11-23 15:02:52 +1100
committerChris Johns <chrisj@rtems.org>2018-11-23 15:02:52 +1100
commit7e5cdeaabeaa95b8533af626b99a43c93e5ecf6f (patch)
tree2ecd175bb744024567e6823353cd50b795604b35 /rtemstoolkit/solaris.py
parent6fa09650b8a936782aa9352e5e23001360317b9d (diff)
rtemstoolkit: Add unit testing for the python modules
- Add support to run the unit tests for the rtemstoolkit python modules from waf. Enter './waf test' for the tests to be run on python2 and python3. - Update the importing of rtemstoolkit modules to the standard method which works on python2 and python3. - Update the README.
Diffstat (limited to 'rtemstoolkit/solaris.py')
-rw-r--r--rtemstoolkit/solaris.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/rtemstoolkit/solaris.py b/rtemstoolkit/solaris.py
index dc3e490..79ddd75 100644
--- a/rtemstoolkit/solaris.py
+++ b/rtemstoolkit/solaris.py
@@ -24,14 +24,9 @@
import os
-try:
- from . import check
- from . import error
- from . import execute
-except (ValueError, SystemError):
- import check
- import error
- import execute
+from rtemstoolkit import check
+from rtemstoolkit import error
+from rtemstoolkit import execute
def cpus():
psrinfo = '/sbin/psrinfo|wc -l'