Changeset 7e5cdea in rtems-tools for rtemstoolkit/windows.py


Ignore:
Timestamp:
Nov 23, 2018, 4:02:52 AM (11 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
e9f48e9face6c4dea62712d73b35412c0fe10332
Children:
f632bd8
Parents:
6fa0965
Message:

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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemstoolkit/windows.py

    r6fa0965 r7e5cdea  
    3535import os
    3636
    37 #
    38 # Support to handle use in a package and as a unit test.
    39 # If there is a better way to let us know.
    40 #
    41 try:
    42     from . import error
    43     from . import execute
    44 except (ValueError, SystemError):
    45     import error
    46     import execute
     37from rtemstoolkit import error
     38from rtemstoolkit import execute
    4739
    4840def cpus():
Note: See TracChangeset for help on using the changeset viewer.