1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
@echo OFF
SETLOCAL
REM -------------------------------------------------------------------------
REM Copyright (c) Microsoft Corporation. All rights reserved.
REM Licensed under the MIT License. See License.txt in the project root for
REM license information.
REM --------------------------------------------------------------------------
cls
if "%1%" == "" (
set PYTHONDIR=%SystemDrive%\Python27
) else (
set PYTHONDIR=%1%
)
if "%PYTHONPATH%" == "" (
set PYTHONPATH=.
)
set PYTHONPATH=%PYTHONPATH%;..
echo Running tests using %PYTHONDIR%
%PYTHONDIR%\python.exe -m unittest discover -p "test_*.py"
set UNITTEST_EC=%ERRORLEVEL%
echo Finished running tests!
REM ---------------------------------------------------------------------------
:exit_door
exit /B %UNITTEST_EC%
|