From 7a02b76e70e219e5201e322c6c6c232d06601920 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Thu, 14 Mar 2019 10:35:00 +0100 Subject: interpreterbase: protect string division with FeatureNew Meson is not warning if you join paths with / but you are requesting a version older than 0.49.0; fix this before adding more features to the division operator. Signed-off-by: Paolo Bonzini --- run_project_tests.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'run_project_tests.py') diff --git a/run_project_tests.py b/run_project_tests.py index 89f11d382..96fe99a89 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -547,6 +547,7 @@ def detect_tests_to_run(): # Name, subdirectory, skip condition. all_tests = [ ('common', 'common', False), + ('warning-meson', 'warning', False), ('failing-meson', 'failing', False), ('failing-build', 'failing build', False), ('failing-test', 'failing test', False), @@ -623,9 +624,14 @@ def _run_tests(all_tests, log_name_base, failfast, extra_args): (testnum, testbase) = t.name.split(' ', 1) testname = '%.3d %s' % (int(testnum), testbase) should_fail = False + suite_args = [] if name.startswith('failing'): should_fail = name.split('failing-')[1] - result = executor.submit(run_test, skipped, t.as_posix(), extra_args, system_compiler, backend, backend_flags, commands, should_fail) + if name.startswith('warning'): + suite_args = ['--fatal-meson-warnings'] + should_fail = name.split('warning-')[1] + result = executor.submit(run_test, skipped, t.as_posix(), extra_args + suite_args, + system_compiler, backend, backend_flags, commands, should_fail) futures.append((testname, t, result)) for (testname, t, result) in futures: sys.stdout.flush() -- cgit v1.2.3