HEX
Server: Apache
System: Linux infong-uk86 4.4.400-icpu-106 #2 SMP Mon Sep 15 08:23:40 UTC 2025 x86_64
User: u44115835 (4976590)
PHP: 8.4.17
Disabled: NONE
Upload Files
File: //kunden/lib/python3/dist-packages/breezy/__pycache__/cmd_test_script.cpython-39.pyc
a

�*�^�@s>dZddlmZddlZddlmZmZGdd�dej�ZdS)z�Front-end command for shell-like test scripts.

See doc/developers/testing.txt for more explanations.
This module should be importable even if testtools aren't available.
�)�absolute_importN�)�commands�optionc@s:eZdZdZdZdgZejddd�gZe	j
ddd	��Zd
S)�cmd_test_scriptz"Run a shell-like test from a file.T�infileznull-outputz&Null command outputs match any output.)�helpFc
s�ddlm}ddlm}t|��}|���Wd�n1s>0YG��fdd�d|�}|j|jd�}|d�}tj	�
|�|_	|�|�}	t|	j
�t|	j�S)Nr)�tests)�TestCaseWithTransportAndScriptcseZdZdZ��fdd�ZdS)z!cmd_test_script.run.<locals>.TestNcs|j��d�dS)N)Znull_output_matches_anything)Z
run_script)�self��null_output�script��8/usr/lib/python3/dist-packages/breezy/cmd_test_script.py�test_it8s�z)cmd_test_script.run.<locals>.Test.test_it)�__name__�
__module__�__qualname__rrrrrr�Test4sr)�streamr)Zbreezyr	Zbreezy.tests.scriptr
�open�readZTextTestRunnerZoutf�os�path�realpath�run�len�errorsZfailures)
rrr
r	r
�frZrunner�test�resrrrr+s
&
zcmd_test_script.runN)F)rrr�__doc__ZhiddenZ
takes_argsrZOptionZ
takes_optionsrZdisplay_commandrrrrrr!s��r)	r"Z
__future__rr�rrZCommandrrrrr�<module>s