diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2021-01-06 09:07:58 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-01-07 19:20:40 +0100 |
commit | d2da7565fd9454bb71077975c7578e875d2f1c56 (patch) | |
tree | 37b964d640fb51e3ea44c1b12832a3103a970c44 /mesonbuild/mtest.py | |
parent | c48713e58c5a56d23d09afa3c5b7c2fc5ba7effa (diff) | |
download | meson-d2da7565fd9454bb71077975c7578e875d2f1c56.zip meson-d2da7565fd9454bb71077975c7578e875d2f1c56.tar.gz meson-d2da7565fd9454bb71077975c7578e875d2f1c56.tar.bz2 |
mtest: reorder arguments to "complete"
Put them in the same order as complete_*.
Diffstat (limited to 'mesonbuild/mtest.py')
-rw-r--r-- | mesonbuild/mtest.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py index 3bedb95..f3879e2 100644 --- a/mesonbuild/mtest.py +++ b/mesonbuild/mtest.py @@ -770,7 +770,7 @@ class TestRun: res = TestResult.EXPECTEDFAIL if bool(returncode) else TestResult.UNEXPECTEDPASS else: res = TestResult.FAIL if bool(returncode) else TestResult.OK - self.complete(res, returncode, stdo, stde, cmd, **kwargs) + self.complete(returncode, res, stdo, stde, cmd, **kwargs) def parse_tap(self, lines: T.Iterator[str]) -> T.Tuple[TestResult, str]: res = None # type: T.Optional[TestResult] @@ -800,7 +800,7 @@ class TestRun: res = TestResult.ERROR stde += '\n(test program exited with status code {})'.format(returncode,) - self.complete(res, returncode, stdo, stde, cmd) + self.complete(returncode, res, stdo, stde, cmd) def complete_rust(self, returncode: int, stdo: str, stde: str, cmd: T.List[str]) -> None: self.results, result = parse_rust_test(stdo) @@ -810,7 +810,7 @@ class TestRun: else: res = result - self.complete(res, returncode, stdo, stde, cmd) + self.complete(returncode, res, stdo, stde, cmd) @property def num(self) -> int: @@ -819,7 +819,7 @@ class TestRun: self._num = TestRun.TEST_NUM return self._num - def complete(self, res: TestResult, returncode: int, + def complete(self, returncode: int, res: TestResult, stdo: T.Optional[str], stde: T.Optional[str], cmd: T.List[str], *, junit: T.Optional[et.ElementTree] = None) -> None: assert isinstance(res, TestResult) @@ -967,7 +967,7 @@ class SingleTestRunner: self.runobj.start() if cmd is None: skip_stdout = 'Not run because can not execute cross compiled binaries.' - self.runobj.complete(TestResult.SKIP, GNU_SKIP_RETURNCODE, skip_stdout, None, None) + self.runobj.complete(GNU_SKIP_RETURNCODE, TestResult.SKIP, skip_stdout, None, None) else: wrap = TestHarness.get_wrapper(self.options) if self.options.gdb: @@ -1138,7 +1138,7 @@ class SingleTestRunner: self.runobj.complete_tap(returncode, result or res, stdo, stde, cmd) elif result: - self.runobj.complete(result, returncode, stdo, stde, cmd) + self.runobj.complete(returncode, result, stdo, stde, cmd) elif self.test.protocol is TestProtocol.EXITCODE: self.runobj.complete_exitcode(returncode, stdo, stde, cmd) elif self.test.protocol is TestProtocol.RUST: |