mirror of
https://git.rtems.org/rtems-tools/
synced 2025-10-17 14:12:39 +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:
@@ -36,14 +36,7 @@ from __future__ import print_function
|
||||
|
||||
import os
|
||||
|
||||
#
|
||||
# Support to handle use in a package and as a unit test.
|
||||
# If there is a better way to let us know.
|
||||
#
|
||||
try:
|
||||
from . import error
|
||||
except (ValueError, SystemError):
|
||||
import error
|
||||
from rtemstoolkit import error
|
||||
|
||||
is_windows = False
|
||||
platform = None
|
||||
@@ -113,7 +106,6 @@ def label(mode = 'all'):
|
||||
|
||||
if __name__ == '__main__':
|
||||
import pprint
|
||||
pprint.pprint(platform())
|
||||
_load()
|
||||
print('Name : %s' % (name))
|
||||
if is_windows:
|
||||
|
Reference in New Issue
Block a user