diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-10-12 10:47:40 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-11-15 14:12:43 +0100 |
commit | f532b0a9c3781cd06c99cd63e9c3b31bf3de7413 (patch) | |
tree | 93d69ae6975f0976d889abe5b4c1b3c86999ffbe | |
parent | 98fe195613a2a9612177fba3751fcb6da14e08a5 (diff) | |
download | meson-f532b0a9c3781cd06c99cd63e9c3b31bf3de7413.zip meson-f532b0a9c3781cd06c99cd63e9c3b31bf3de7413.tar.gz meson-f532b0a9c3781cd06c99cd63e9c3b31bf3de7413.tar.bz2 |
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 <pbonzini@redhat.com>
-rw-r--r-- | mesonbuild/mtest.py | 14 |
1 files changed, 1 insertions, 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'): |