aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrun_tests.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/run_tests.py b/run_tests.py
index 040f958..5a52a44 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -119,7 +119,7 @@ def get_fake_options(prefix):
return opts
def should_run_linux_cross_tests():
- return shutil.which('arm-linux-gnueabihf-gcc-6') and not platform.machine().startswith('arm')
+ return shutil.which('arm-linux-gnueabihf-gcc-6') and not platform.machine().lower().startswith('arm')
def run_configure_inprocess(commandlist):
old_stdout = sys.stdout
@@ -142,7 +142,17 @@ class FakeEnvironment(object):
def is_cross_build(self):
return False
+def print_system_info():
+ print(mlog.bold('System information.').get_text(mlog.colorize_console))
+ print('Architecture:', platform.architecture())
+ print('Machine:', platform.machine())
+ print('Platform:', platform.system())
+ print('Processor:', platform.processor())
+ print('System:', platform.system())
+ print('')
+
if __name__ == '__main__':
+ print_system_info()
# Enable coverage early...
enable_coverage = '--cov' in sys.argv
if enable_coverage: