]> jfr.im git - yt-dlp.git/blame - devscripts/run_tests.sh
[extractor] Common function `_match_valid_url`
[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
6 test_set='not download'
7elif [ $1 = 'download' ]; then
8 test_set='download'
9else
10 echo 'Invalid test type "'$1'". Use "core" | "download"'
11 exit 1
12fi
13
060ac762 14python3 -m pytest -k "$test_set"