
    ;ie                     N    S SK r S SKJrJr  SS jrS rS r\S:X  a  \" 5         gg)    N)execute_subprocess_asyncpath_in_accelerate_packagec                     U b  U R                  S5      nO[        R                  " S5      nUR                  SS SS9  U b  UR	                  [
        S9  U$ )NtestzAccelerate test commandz--config_fileaT  The path to use to store the config file. Will default to a file named default_config.yaml in the cache location, which is the content of the environment `HF_HOME` suffixed with 'accelerate', or if you don't have such an environment variable, your cache directory ('~/.cache' or the content of `XDG_CACHE_HOME`) suffixed with 'huggingface'.)defaulthelp)func)
add_parserargparseArgumentParseradd_argumentset_defaultstest_command)
subparsersparsers     h/home/dmtnaga/Documents/work/airagagent/rag_env/lib/python3.13/site-packages/accelerate/commands/test.pytest_command_parserr      se    &&v.(()BC
"	  	 .M    c                     [        SSS5      nU R                  c  U/nO SU R                   SU 3R                  5       nS/U-   n[        U5      nUR                  S:X  a  [        S5        g g )	N
test_utilsscriptsztest_script.pyz--config_file= zaccelerate-launchr   z?Test is a success! You are ready for your distributed training!)r   config_filesplitr   
returncodeprint)argsscript_name	test_argscmdresults        r   r   r   ,   sy    ,\9FVWK M	$T%5%5$6a}EKKM	
)
+C%c*FAOP r   c                  N    [        5       n U R                  5       n[        U5        g N)r   
parse_argsr   )r   r   s     r   mainr%   :   s      "FDr   __main__r#   )r   accelerate.test_utilsr   r   r   r   r%   __name__ r   r   <module>r*      s1   "  V,Q zF r   