z'' d dl mZ d dl mZ d dl mZ d dlZd dlmZ d dlmZ d dl m Z d dlmZ d d l mZ erd d lmZ dZde d dfdZej ded dfd Zded dfdZ G d d ZdS ) )List)Optional) TYPE_CHECKINGN)nodes)Config)Parser)Session) TestReport)Cachezcache/stepwiseparserreturnc | d }| dddddd | d d dddd d S ) Ngeneralz--swz --stepwise store_trueFstepwisezBExit on test failure and continue from last failing test next time)actiondefaultdesthelpz --sw-skipz--stepwise-skip stepwise_skipz_Ignore the first failing test but stop on the next failing test. Implicitly enables --stepwise.)getgroup addoption)r groups b/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/_pytest/stepwise.pypytest_addoptionr s{ OOI&&E OO Q OO ) configc | j j rd| j _ | d r*| j t | d d S d S )NTr stepwiseplugin)optionr r getoption pluginmanagerregisterStepwisePlugin)r s r pytest_configurer% ' sd }" &!% ## P%%nV&<&<>NOOOOOP Pr sessionc | j d sL| j j J t | j d rd S | j j t g d S d S )Nr workerinput)r r! cachehasattrsetSTEPWISE_CACHE_DIRr&