XylotrechusZ
�
� hm � � � d dl Z d dlZd dlZd dlmZ d dlmZ dZdZdZ G d� d� � Z
d � Z ej d
�� � dej
d
dfd�� � Zd� ZdS )� N)�format_as_diagnostics)�Tracker)�log�all)�stdoutr )�stderrr c � � e Zd Zdej ddfd�Z ej � � d� � � Z ej d�� � d� � � Z ej � � d ej fd
�� � Z
ej � � dej fd�� � ZdS )� TAPPlugin�config�returnNc �f � t |j j |j j |j j t
j �� � | _ | j j rB|j �
d� � }|r|j � |� � d| j _ |j j
| _ |j j | _ d S )N)�outdir�combined� streaming�stream�terminalreporterF)r �option�
tap_outdir�tap_combined�
tap_stream�sysr �_trackerr �
pluginmanager� getplugin�
unregister�header�showcapture�show_capture�tap_log_passing_tests�log_passing_tests)�selfr �reporters �b/builddir/build/BUILD/cloudlinux-venv-1.0.8/venv/lib/python3.11/site-packages/pytest_tap/plugin.py�__init__zTAPPlugin.__init__ s� � ���=�+��]�/��m�.��:�
�
�
��
� �=�"� )��+�5�5�6H�I�I�H��
:��$�/�/��9�9�9�
$)�D�M� �"�M�5���!'��!D����� c �| � |j j }|j s|j r!| j � |j � � dS dS )zOutput the plan line first.N)r r r r r �set_plan�testscollected)r! �sessionr s r# �pytest_runtestloopzTAPPlugin.pytest_runtestloop# sL � � ��&���� ;�� 3� ;��M�"�"�7�#9�:�:�:�:�:� ;� ;r% T)�optionalhookc � � | j j s| j j r)| j � t |� � � � dS dS )z,Output the plan line first when using xdist.N)r r r r'