From f532b0a9c3781cd06c99cd63e9c3b31bf3de7413 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Mon, 12 Oct 2020 10:47:40 +0200 Subject: mtest: remove run_special run_special and doit are the same except that run_special forgot to set self.is_run. There is no need for the duplication. Signed-off-by: Paolo Bonzini --- mesonbuild/mtest.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py index a688e86..f36f1d1 100644 --- a/mesonbuild/mtest.py +++ b/mesonbuild/mtest.py @@ -1186,16 +1186,6 @@ class TestHarness: self.process_test_result(result.result()) self.print_stats(test_count, name_max_len, tests, name, result.result(), i) - def run_special(self) -> int: - '''Tests run by the user, usually something like "under gdb 1000 times".''' - if self.is_run: - raise RuntimeError('Can not use run_special after a full run.') - tests = self.get_tests() - if not tests: - return 0 - self.run_tests(tests) - return self.total_failure_count() - def list_tests(th: TestHarness) -> bool: tests = th.get_tests() @@ -1256,9 +1246,7 @@ def run(options: argparse.Namespace) -> int: try: if options.list: return list_tests(th) - if not options.args: - return th.doit() - return th.run_special() + return th.doit() except TestException as e: print('Meson test encountered an error:\n') if os.environ.get('MESON_FORCE_BACKTRACE'): -- cgit v1.1