The __multicall__ is deprecated and show issues when running with the last versions of the pytest. Update the code to run.

Signed-off-by: Felipe Desiglo Ferrare <Felipe.DesigloFerrare@windriver.com>
Change-Id: Ibb9b54ce97a644e94f17ce6b4cff81b5d8b88cc1
This commit is contained in:
Felipe Desiglo Ferrare 2021-10-26 17:01:48 -03:00
parent 005b2d5dc2
commit c4dc106ea9
1 changed files with 4 additions and 2 deletions

View File

@ -91,8 +91,10 @@ def _write_results(res_in_tests, test_name):
tc_start_time = None
def pytest_runtest_makereport(item, call, __multicall__):
report = __multicall__.execute()
@pytest.hookimpl(hookwrapper=True)
def pytest_runtest_makereport(item, call):
out = yield
report = out.get_result()
my_rep = MakeReport.get_report(item)
my_rep.update_results(call, report)