]> jfr.im git - yt-dlp.git/blob - devscripts/run_tests.sh
[cleanup] Minor fixes (See desc)
[yt-dlp.git] / devscripts / run_tests.sh
1 #!/bin/sh
2
3 if [ -z $1 ]; then
4 test_set='test'
5 elif [ $1 = 'core' ]; then
6 test_set="-m not download"
7 elif [ $1 = 'download' ]; then
8 test_set="-m download"
9 else
10 echo 'Invalid test type "'$1'". Use "core" | "download"'
11 exit 1
12 fi
13
14 python3 -bb -Werror -m pytest "$test_set"