2021-07-23 16:48:15 +02:00
|
|
|
@setlocal
|
2021-01-07 07:41:05 +01:00
|
|
|
@echo off
|
2021-07-23 16:48:15 +02:00
|
|
|
cd /d %~dp0..
|
2021-01-07 07:41:05 +01:00
|
|
|
|
2021-07-23 16:48:15 +02: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-07 07:41:05 +01:00
|
|
|
) else (
|
2021-07-23 16:48:15 +02:00
|
|
|
echo.Invalid test type "%~1". Use "core" ^| "download"
|
2021-01-07 07:41:05 +01:00
|
|
|
exit /b 1
|
|
|
|
)
|
|
|
|
|
2021-07-23 16:48:15 +02:00
|
|
|
pytest %test_set%
|