aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mtest.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-02-02 09:33:52 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2021-02-02 10:06:55 +0100
commit203f368949d4a4021b8ce0b8dc400e7ec574271c (patch)
treed374d2dc8e912aa3059d1bdf5e82cfa6579b59e7 /mesonbuild/mtest.py
parent41d13313498030ff60d2b18afd915d1a71852d72 (diff)
downloadmeson-203f368949d4a4021b8ce0b8dc400e7ec574271c.zip
meson-203f368949d4a4021b8ce0b8dc400e7ec574271c.tar.gz
meson-203f368949d4a4021b8ce0b8dc400e7ec574271c.tar.bz2
mtest: remove useless argument
Diffstat (limited to 'mesonbuild/mtest.py')
-rw-r--r--mesonbuild/mtest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index 24db5ce..200e26b 100644
--- a/mesonbuild/mtest.py
+++ b/mesonbuild/mtest.py
@@ -1564,14 +1564,14 @@ class TestHarness:
def total_failure_count(self) -> int:
return self.fail_count + self.unexpectedpass_count + self.timeout_count
- def doit(self, options: argparse.Namespace) -> int:
+ def doit(self) -> int:
if self.is_run:
raise RuntimeError('Test harness object can only be used once.')
self.is_run = True
tests = self.get_tests()
if not tests:
return 0
- if not options.no_rebuild and not rebuild_deps(options.wd, tests):
+ if not self.options.no_rebuild and not rebuild_deps(self.options.wd, tests):
# We return 125 here in case the build failed.
# The reason is that exit code 125 tells `git bisect run` that the current
# commit should be skipped. Thus users can directly use `meson test` to
@@ -1913,7 +1913,7 @@ def run(options: argparse.Namespace) -> int:
try:
if options.list:
return list_tests(th)
- return th.doit(options)
+ return th.doit()
except TestException as e:
print('Meson test encountered an error:\n')
if os.environ.get('MESON_FORCE_BACKTRACE'):