Files
revng-revng/share/revng/test/tests/daemon/conftest.py
Giacomo Vercesi f3f04ef891 daemon/test.py: improve daemon log handling
Improve the handling of the daemon process when running tests.
print.
2023-02-01 17:46:21 +01:00

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)