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_cross_test.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'run_cross_test.py') diff --git a/run_cross_test.py b/run_cross_test.py index abbfdac..1e67876 100755 --- a/run_cross_test.py +++ b/run_cross_test.py @@ -21,8 +21,9 @@ This is now just a wrapper around run_project_tests.py with specific arguments import argparse import subprocess -import sys from mesonbuild import mesonlib +from mesonbuild.coredata import version as meson_version + def runtests(cross_file, failfast): tests = ['--only', 'common'] @@ -37,4 +38,5 @@ def main(): return runtests(options.cross_file, options.failfast) if __name__ == '__main__': - sys.exit(main()) + print('Meson build system', meson_version, 'Cross Tests') + raise SystemExit(main()) -- cgit v1.1