Changeset 6d30de6 in rtems-tools for rtemstoolkit/host.py


Ignore:
Timestamp:
Nov 28, 2018, 9:13:51 PM (11 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.
File:
1 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))
Note: See TracChangeset for help on using the changeset viewer.