]> jfr.im git - yt-dlp.git/blobdiff - devscripts/run_tests.bat
[cleanup] Fix misc bugs (#8968)
[yt-dlp.git] / devscripts / run_tests.bat
index f12ae1c1b24a7653bc944170f733c9d0441b5a17..57b1f4bf4653d92cc808cab4393e8b273e800f69 100644 (file)
@@ -1,16 +1,4 @@
-@setlocal
 @echo off
-cd /d %~dp0..
 
-if ["%~1"]==[""] (
-    set "test_set="
-) else if ["%~1"]==["core"] (
-    set "test_set=-k "not download""
-) else if ["%~1"]==["download"] (
-    set "test_set=-k download"
-) else (
-    echo.Invalid test type "%~1". Use "core" ^| "download"
-    exit /b 1
-)
-
-pytest %test_set%
+>&2 echo run_tests.bat is deprecated. Please use `devscripts/run_tests.py` instead
+python %~dp0run_tests.py %~1