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