]> jfr.im git - yt-dlp.git/blame - devscripts/run_tests.sh
[cleanup,build] Cleanup some build-related code
[yt-dlp.git] / devscripts / run_tests.sh
CommitLineData
060ac762 1#!/bin/sh
2
3if [ -z $1 ]; then
4 test_set='test'
5elif [ $1 = 'core' ]; then
a387b69a 6 test_set="-m not download"
060ac762 7elif [ $1 = 'download' ]; then
a387b69a 8 test_set="-m download"
060ac762 9else
10 echo 'Invalid test type "'$1'". Use "core" | "download"'
11 exit 1
12fi
13
b6dc37fe 14python3 -bb -Werror -m pytest "$test_set"