aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-08-06 13:07:34 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2017-08-06 13:07:34 +0300
commitb5d829e5ace703da5a230d7b109b5ae7215b1dde (patch)
treeac21cf2fb6238cd57f721cae043710ae677b436b
parent58bd1e83b4e24eaab3cf18deb635a057d6bfefb7 (diff)
downloadmeson-b5d829e5ace703da5a230d7b109b5ae7215b1dde.zip
meson-b5d829e5ace703da5a230d7b109b5ae7215b1dde.tar.gz
meson-b5d829e5ace703da5a230d7b109b5ae7215b1dde.tar.bz2
Print system information to aid in debugging remote machines.
-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: