From 1ec84c570fe33309a388238c247caac9578b2191 Mon Sep 17 00:00:00 2001 From: Michael Hirsch Date: Thu, 14 May 2020 13:55:46 -0400 Subject: 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()) --- run_meson_command_tests.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'run_meson_command_tests.py') diff --git a/run_meson_command_tests.py b/run_meson_command_tests.py index 9dfb62e08..c1af75881 100755 --- a/run_meson_command_tests.py +++ b/run_meson_command_tests.py @@ -14,7 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -import sys import os import tempfile import unittest @@ -23,6 +22,8 @@ import zipapp from pathlib import Path from mesonbuild.mesonlib import windows_proof_rmtree, python_command, is_windows +from mesonbuild.coredata import version as meson_version + def get_pypath(): import sysconfig @@ -195,4 +196,5 @@ class CommandTests(unittest.TestCase): if __name__ == '__main__': - sys.exit(unittest.main(buffer=True)) + print('Meson build system', meson_version, ' Command Tests') + raise SystemExit(unittest.main(buffer=True)) -- cgit v1.2.3