summaryrefslogtreecommitdiffstats
path: root/rtemstoolkit/host.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2018-11-29 08:13:51 +1100
committerChris Johns <chrisj@rtems.org>2018-11-29 08:37:40 +1100
commit6d30de6dacc17e8d1530410e762629ff91c21faf (patch)
tree901d12ab6536da1338a6005e2bcf08c842edc633 /rtemstoolkit/host.py
parenttester/coverage: Remove warnings in covoar on Windows. (diff)
downloadrtems-tools-6d30de6dacc17e8d1530410e762629ff91c21faf.tar.bz2
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.
Diffstat (limited to 'rtemstoolkit/host.py')
-rw-r--r--rtemstoolkit/host.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rtemstoolkit/host.py b/rtemstoolkit/host.py
index 64032f8..ba24c9d 100644
--- a/rtemstoolkit/host.py
+++ b/rtemstoolkit/host.py
@@ -53,7 +53,7 @@ def _load():
is_windows = True
elif os.name == 'posix':
uname = os.uname()
- if uname[0].startswith('CYGWIN_NT'):
+ if uname[0].startswith('MINGW64_NT') or uname[0].startswith('CYGWIN_NT'):
name = 'windows'
elif uname[0] == 'Darwin':
name = darwin
@@ -106,6 +106,7 @@ def label(mode = 'all'):
if __name__ == '__main__':
import pprint
+ print('Python\'s OS name: %s' % (os.name))
_load()
print('Name : %s' % (name))
if is_windows: