]> jfr.im git - yt-dlp.git/blame - devscripts/run_tests.bat
[cleanup] Misc
[yt-dlp.git] / devscripts / run_tests.bat
CommitLineData
060ac762 1@setlocal
c76eb41b 2@echo off
060ac762 3cd /d %~dp0..
c76eb41b 4
060ac762 5if ["%~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 16set PYTHONWARNINGS=error
060ac762 17pytest %test_set%