관리-도구
편집 파일: main.cpython-311.pyc
� �܋fL � �n � d dl Z d dlZd dlZd dlmZ d dlmZ ej ej fd�Z d� Z d� Zd� Zd� Z dS ) � N)�Loader)� TAPTestRunnerc � � t | � � }t |� � }t j |j |�� � }|� |� � }t |� � S )z"Entry point for ``tappy`` command.)� verbosity�stream)� parse_args�build_suite�unittest�TextTestRunner�verbose�run� get_status)�argvr �args�suite�runner�results �Y/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/tap/main.py�mainr sR � ��d���D�����E� � $�t�|�F� K� K� K�F� �Z�Z�� � �F��f���� c �� � t � � }t | j � � dk s| j d dk r|� � � }n|� | j � � }|S )z8Build a test suite by loading TAP files or a TAP stream.r �-)r �len�files�load_suite_from_stdin�load)r �loaderr s r r r sY � � �X�X�F� �4�:���!���t�z�!�}��3�3��,�,�.�.������D�J�'�'���Lr c �r � d}d}t j ||�� � }|� dddd�� � |� d d ddd d�� � |� | dd � � � }|j sDt j � � � r&t j |� � � � � |S )NzA TAP consumer for PythonziWhen no files are given or a dash (-) is used for the file name, tappy will read a TAP stream from STDIN.)�description�epilogr �FILE�*zgA file containing TAP output. Any directories listed will be scanned for files to include as TAP files.)�metavar�nargs�helpz-vz --verbose�store_const� � zuse verbose messages)�action�default�constr% ) �argparse�ArgumentParser�add_argumentr r �sys�stdin�isatty�exit� print_help)r r r �parserr s r r r s� � �-�K� 3� � � $��V� L� L� L�F� ������ 9� � � � � �������� #� � � � � ���T�!�"�"�X�&�&�D� �:� &�#�)�*�*�,�,� &����"�"�$�$�%�%�%��Kr c �2 � | � � � rdS dS )z$Get a return status from the result.r r'