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