mirror of
https://git.rtems.org/rtems-tools/
synced 2025-10-18 14:18:12 +08:00
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.
This commit is contained in:
@@ -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'
|
||||
|
Reference in New Issue
Block a user