Changeset 6d30de6 in rtems-tools


Ignore:
Timestamp:
Nov 28, 2018, 9:13:51 PM (6 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
3bc12bb
Parents:
61410db
git-author:
Chris Johns <chrisj@…> (11/28/18 21:13:51)
git-committer:
Chris Johns <chrisj@…> (11/28/18 21:37:40)
Message:

rtemstoolkit: Fix unittests on Windows

  • Fix Windows host support so MSYS pythons can be used.
  • Fix Windows host support for python3.
  • Improve the mailer unittest.
Location:
rtemstoolkit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • rtemstoolkit/host.py

    r61410db r6d30de6  
    5454    elif os.name == 'posix':
    5555        uname = os.uname()
    56         if uname[0].startswith('CYGWIN_NT'):
     56        if uname[0].startswith('MINGW64_NT') or uname[0].startswith('CYGWIN_NT'):
    5757            name = 'windows'
    5858        elif uname[0] == 'Darwin':
     
    107107if __name__ == '__main__':
    108108    import pprint
     109    print('Python\'s OS name: %s' % (os.name))
    109110    _load()
    110111    print('Name      : %s' % (name))
  • rtemstoolkit/version.py

    r61410db r6d30de6  
    247247if __name__ == '__main__':
    248248    print('Version: %s' % (str(version())))
     249    print('Revision: %s' % (str(revision())))
     250    print('String: %s' % (string()))
    249251    if version() == 'undefined':
    250252        raise Exception('version is undefined')
  • rtemstoolkit/windows.py

    r61410db r6d30de6  
    3939
    4040def cpus():
    41     if os.environ.has_key('NUMBER_OF_PROCESSORS'):
     41    if 'NUMBER_OF_PROCESSORS' in os.environ:
    4242        ncpus = int(os.environ['NUMBER_OF_PROCESSORS'])
    4343    else:
     
    4949    uname = 'win32'
    5050    system = 'mingw32'
    51     if os.environ.has_key('HOSTTYPE'):
     51    if 'HOSTTYPE' in os.environ:
    5252        hosttype = os.environ['HOSTTYPE']
    5353    else:
     
    103103        '__chown':        ('exe',     'required', 'chown'),
    104104        '__cp':           ('exe',     'required', 'cp'),
    105         '__cvs':          ('exe',     'required', 'cvs'),
    106105        '__cxx':          ('exe',     'required', 'g++'),
    107106        '__flex':         ('exe',     'required', 'flex'),
Note: See TracChangeset for help on using the changeset viewer.