diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2023-02-09 14:30:56 -0500 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2023-02-13 09:09:10 -0500 |
commit | 7e5a1d60899729397b6aeee2401dec5d5014b6b5 (patch) | |
tree | a23f95bc5b7c09d205ad045cf817507e11c22d0c /run_tests.py | |
parent | 115f2983618112de7e794389e2227d6fa7fbd2d4 (diff) | |
download | meson-7e5a1d60899729397b6aeee2401dec5d5014b6b5.zip meson-7e5a1d60899729397b6aeee2401dec5d5014b6b5.tar.gz meson-7e5a1d60899729397b6aeee2401dec5d5014b6b5.tar.bz2 |
CI: log individual steps in run_tests
Diffstat (limited to 'run_tests.py')
-rwxr-xr-x | run_tests.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/run_tests.py b/run_tests.py index b03cbac..8a20937 100755 --- a/run_tests.py +++ b/run_tests.py @@ -343,6 +343,10 @@ def print_system_info(): print('') print(flush=True) +def subprocess_call(cmd, **kwargs): + print(f'$ {mesonlib.join_args(cmd)}') + return subprocess.call(cmd, **kwargs) + def main(): print_system_info() parser = argparse.ArgumentParser() @@ -380,7 +384,7 @@ def main(): cmd = mesonlib.python_command + ['run_meson_command_tests.py', '-v'] if options.failfast: cmd += ['--failfast'] - returncode += subprocess.call(cmd, env=env) + returncode += subprocess_call(cmd, env=env) if options.failfast and returncode != 0: return returncode if no_unittests: @@ -393,11 +397,11 @@ def main(): cmd = mesonlib.python_command + ['run_unittests.py', '--backend=' + backend.name, '-v'] if options.failfast: cmd += ['--failfast'] - returncode += subprocess.call(cmd, env=env) + returncode += subprocess_call(cmd, env=env) if options.failfast and returncode != 0: return returncode cmd = mesonlib.python_command + ['run_project_tests.py'] + sys.argv[1:] - returncode += subprocess.call(cmd, env=env) + returncode += subprocess_call(cmd, env=env) else: cross_test_args = mesonlib.python_command + ['run_cross_test.py'] for cf in options.cross: @@ -408,7 +412,7 @@ def main(): cmd += ['--failfast'] if options.cross_only: cmd += ['--cross-only'] - returncode += subprocess.call(cmd, env=env) + returncode += subprocess_call(cmd, env=env) if options.failfast and returncode != 0: return returncode return returncode |