2022-05-27 01:06:23 +02:00
|
|
|
#!/usr/bin/env sh
|
2021-07-23 16:48:15 +02:00
|
|
|
|
|
|
|
if [ -z $1 ]; then
|
|
|
|
test_set='test'
|
|
|
|
elif [ $1 = 'core' ]; then
|
2021-10-12 20:54:27 +02:00
|
|
|
test_set="-m not download"
|
2021-07-23 16:48:15 +02:00
|
|
|
elif [ $1 = 'download' ]; then
|
2021-10-12 20:54:27 +02:00
|
|
|
test_set="-m download"
|
2021-07-23 16:48:15 +02:00
|
|
|
else
|
|
|
|
echo 'Invalid test type "'$1'". Use "core" | "download"'
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2022-04-17 22:42:48 +02:00
|
|
|
python3 -bb -Werror -m pytest "$test_set"
|