diff options
author | Michael Hirsch <scivision@users.noreply.github.com> | 2020-05-14 13:55:46 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-06-15 23:33:40 +0300 |
commit | 1ec84c570fe33309a388238c247caac9578b2191 (patch) | |
tree | 56bfdfca91a6c249364721e0a280ad3f2a49572b /run_project_tests.py | |
parent | 0a583ac06acb34025adb74efe1c5806bb226c1e8 (diff) | |
download | meson-1ec84c570fe33309a388238c247caac9578b2191.zip meson-1ec84c570fe33309a388238c247caac9578b2191.tar.gz meson-1ec84c570fe33309a388238c247caac9578b2191.tar.bz2 |
run_*tests*.py: print Meson version at start of test suite
on some systems, tests may take over an hour to run--only to find
you might have used an unintended Meson version (e.g. release instead
of dev). This change prints the Meson version at the start of the
run_*tests*.py scripts.
Also, raise SystemExit(main()) is preferred in general over
sys.exit(main())
Diffstat (limited to 'run_project_tests.py')
-rwxr-xr-x | run_project_tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/run_project_tests.py b/run_project_tests.py index 0879e2d..c368253 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -42,7 +42,7 @@ from mesonbuild import mesonlib from mesonbuild import mlog from mesonbuild import mtest from mesonbuild.mesonlib import MachineChoice, Popen_safe -from mesonbuild.coredata import backendlist +from mesonbuild.coredata import backendlist, version as meson_version from run_tests import get_fake_options, run_configure, get_meson_script from run_tests import get_backend_commands, get_backend_args_for_dir, Backend @@ -1248,6 +1248,7 @@ if __name__ == '__main__': if options.cross_file: options.extra_args += ['--cross-file', options.cross_file] + print('Meson build system', meson_version, 'Project Tests') setup_commands(options.backend) detect_system_compiler(options) print_tool_versions() |