]>
Commit | Line | Data |
---|---|---|
060ac762 | 1 | @setlocal |
c76eb41b | 2 | @echo off |
060ac762 | 3 | cd /d %~dp0.. |
c76eb41b | 4 | |
060ac762 | 5 | if ["%~1"]==[""] ( |
a387b69a | 6 | set "test_set="test"" |
060ac762 | 7 | ) else if ["%~1"]==["core"] ( |
a387b69a | 8 | set "test_set="-m not download"" |
060ac762 | 9 | ) else if ["%~1"]==["download"] ( |
a387b69a | 10 | set "test_set="-m "download"" |
c76eb41b | 11 | ) else ( |
060ac762 | 12 | echo.Invalid test type "%~1". Use "core" ^| "download" |
c76eb41b | 13 | exit /b 1 |
14 | ) | |
15 | ||
b6dc37fe | 16 | set PYTHONWARNINGS=error |
060ac762 | 17 | pytest %test_set% |