yt-dlp/devscripts/run_tests.bat

17 lines
309 B
Batchfile
Raw Normal View History

@setlocal
2021-01-06 23:41:05 -07:00
@echo off
cd /d %~dp0..
2021-01-06 23:41:05 -07:00
if ["%~1"]==[""] (
set "test_set="
) else if ["%~1"]==["core"] (
set "test_set=-k "not download""
) else if ["%~1"]==["download"] (
set "test_set=-k download"
2021-01-06 23:41:05 -07:00
) else (
echo.Invalid test type "%~1". Use "core" ^| "download"
2021-01-06 23:41:05 -07:00
exit /b 1
)
pytest %test_set%