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


Ignore:
Timestamp:
Nov 23, 2018, 4:02:52 AM (11 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
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/git.py

    r6fa0965 r7e5cdea  
    3232import os
    3333
    34 #
    35 # Support to handle use in a package and as a unit test.
    36 # If there is a better way to let us know.
    37 #
    38 try:
    39     from . import error
    40     from . import execute
    41     from . import log
    42     from . import path
    43 except (ValueError, SystemError):
    44     import error
    45     import execute
    46     import log
    47     import path
     34from rtemstoolkit import error
     35from rtemstoolkit import execute
     36from rtemstoolkit import log
     37from rtemstoolkit import path
    4838
    4939class repo:
     
    221211if __name__ == '__main__':
    222212    import sys
    223     import options
     213    from rtemstoolkit import options
    224214    long_opts = {
    225215       # key              macro        handler   param  defs   init
Note: See TracChangeset for help on using the changeset viewer.