Skip to content

Commit 240c3af

Browse files
committed
run_unattended_tests: added an option to run only from the current WinPython install
1 parent cc6540e commit 240c3af

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

run_unattended_tests.bat

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,19 @@ setlocal
44
set PYTHONPATH=%cd%
55
set TEST_UNATTENDED=1
66

7+
if not defined WINPYDIRBASE ( goto :no )
8+
9+
choice /t 5 /c yn /cs /d n /m "Do you want to run tests only from %WINPYDIRBASE% (y/n)?"
10+
if errorlevel 2 goto :no
11+
12+
:yes
13+
call %WINPYDIRBASE%\scripts\env.bat
14+
python -m qwt.tests.__init__
15+
pause
16+
exit /B %ERRORLEVEL%
17+
:no
718
for /f %%f in ('dir /b c:\w*') do (call :test %%f)
819
pause
9-
1020
exit /B %ERRORLEVEL%
1121

1222
:test

0 commit comments

Comments
 (0)