From b5d829e5ace703da5a230d7b109b5ae7215b1dde Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 6 Aug 2017 13:07:34 +0300 Subject: Print system information to aid in debugging remote machines. --- run_tests.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'run_tests.py') diff --git a/run_tests.py b/run_tests.py index 040f9587f..5a52a44d1 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: -- cgit v1.2.3