i8dZddlZddlZddlZddlZejejejeZej gej zZ gZ dZ dZdZedkr edSdS)zA test runner for pywin32Nctj|\}}tjd|g|z}t d|ztjtj |d|}t d|d|j tj|j rt |dSdS)Nz-uz--- Running '%s' ---F)checkcwdz*** Test script 'z' exited with ) ospathsplitsys executableprintstdoutflush subprocessrun returncodefailuresappend)scriptcmdline_extrasdirname scriptnamecmdresults KC:\PYTHON\_runtimes\venv\Lib\site-packages\../../Scripts/pywin32_testall.pyrun_testrs'--//GZ >4 ,~ =C 6 )***J ^Cu' : : :F Gf G GF4E G GHHHJ    c|D]4}tj|rt||dS5t d|z)Nz+Failed to locate a test script in one of %s)rrisfiler RuntimeError)possible_locationsextrasmaybes r find_and_runr" s`#   7>>%   UF # # # EE  9zmain..Ts)TTTi"',,y&11TTTrcRg|]$}tj|ddd%S)win32comtestz testall.pyr+r-r.s rr/zmain..Xs<   Y FLAArcom1cRg|]$}tj|ddd%S)adodbapir2zadodbapitest.pyr+r3s rr/zmain..as=    GLLJ8I J J   rcRg|]$}tj|ddd%S)r7r2ztest_adodbapi_dbapi20.pyr+r3s rr/zmain..is=    GLLJ8R S S   rzThe following scripts failed>zAll tests passed \o/)argparse project_root site_packagesArgumentParser add_argumentparse_known_argsuser_interactionrextendr"rrr, skip_adodbapirr r exit) r;code_directoriesparserargsremainsr scriptsmaybesfailurers @rmainrL+shOOO$~ 5  $ $N%F  R   ;   O ++--MD'F + )*** MM'%G%%TTTTCSTTTVV$$$$',,|U;;<}LFu_F      &  -    VW%%%  -    VW%%% ,---  G #w       !"""""r__main__)__doc__rsiterr rr__file__r<getusersitepackagesgetsitepackagesr=rrr"rL__name__r*rrrTs  wrwrwx/H/HIIJJ ))++,/Ct/C/E/EE        I#I#I#X zDFFFFFr