mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
f3f04ef891
Improve the handling of the daemon process when running tests. print.
15 lines
392 B
Python
15 lines
392 B
Python
#
|
|
# This file is distributed under the MIT License. See LICENSE.md for details.
|
|
#
|
|
from pytest import Parser, TestReport, hookimpl
|
|
|
|
|
|
def pytest_addoption(parser: Parser):
|
|
parser.addoption("--binary", action="store")
|
|
|
|
|
|
@hookimpl(tryfirst=True, hookwrapper=True)
|
|
def pytest_runtest_makereport(item, call):
|
|
rep: TestReport = (yield).get_result()
|
|
setattr(item, "rep_" + rep.when, rep)
|