pytest: report vcsserver failures always
This commit is contained in:
parent
9e0f0a6155
commit
a4fe5dd06d
2 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ addopts =
|
||||||
--pdbcls=IPython.terminal.debugger:TerminalPdb
|
--pdbcls=IPython.terminal.debugger:TerminalPdb
|
||||||
--strict-markers
|
--strict-markers
|
||||||
--capture=no
|
--capture=no
|
||||||
--show-capture=no
|
--show-capture=all
|
||||||
|
|
||||||
markers =
|
markers =
|
||||||
vcs_operations: Mark tests depending on a running RhodeCode instance.
|
vcs_operations: Mark tests depending on a running RhodeCode instance.
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,7 @@ def pytest_runtest_makereport(item, call):
|
||||||
exc = call.excinfo.value
|
exc = call.excinfo.value
|
||||||
vcsserver_traceback = getattr(exc, '_vcs_server_traceback', None)
|
vcsserver_traceback = getattr(exc, '_vcs_server_traceback', None)
|
||||||
|
|
||||||
if vcsserver_traceback:
|
if vcsserver_traceback and report.outcome == 'failed':
|
||||||
section = f'VCSServer remote traceback {report.when}'
|
section = f'VCSServer remote traceback {report.when}'
|
||||||
report.sections.append((section, vcsserver_traceback))
|
report.sections.append((section, vcsserver_traceback))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue