yi`v 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)logall)stdoutr )stderrr c e Zd Zdej ddfdZ ej d Z ej d d Z ej d ej fd Z ej dej fd ZdS ) TAPPluginconfigreturnNc 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)outdircombined streamingstreamterminalreporterF)r option tap_outdirtap_combined tap_streamsysr _trackerr pluginmanager getplugin unregisterheadershowcaptureshow_capturetap_log_passing_testslog_passing_tests)selfr reporters c/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pytest_tap/plugin.py__init__zTAPPlugin.__init__ s =+]/m.: =" )+556HIIH :$//999 $)DM "M5!'!D c | |j j }|j s|j r!| j |j dS dS )zOutput the plan line first.N)r r r r r set_plantestscollected)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' len)r! nodeidss r# %pytest_xdist_node_collection_finishedz/TAPPlugin.pytest_xdist_node_collection_finished* sI =" -dm&<