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