Update the Multi-call code to make a clean run
The __multicall__ is deprecated and shows issues when running with the last versions of the pytest. Update the code to run. Story: 2005892 Task: 44066 Signed-off-by: Felipe Desiglo Ferrare <Felipe.DesigloFerrare@windriver.com> Change-Id: Ibb9b54ce97a644e94f17ce6b4cff81b5d8b88cc1
This commit is contained in:
parent
1516b57d62
commit
97c61303fb
|
@ -90,8 +90,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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue