1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-10 01:02:51 +08:00

[travis] Only download tests should be run in parallel

This commit is contained in:
Yen Chi Hsuan 2017-02-18 22:36:50 +08:00
parent cdb0ba2119
commit f17ce2c5c3

View File

@ -3,6 +3,7 @@
DOWNLOAD_TESTS="age_restriction|download|subtitles|write_annotations|iqiyi_sdk_interpreter"
test_set=""
multiprocess_args=""
case "$YTDL_TEST_SET" in
core)
@ -10,10 +11,11 @@ case "$YTDL_TEST_SET" in
;;
download)
test_set="-I test_(?!$DOWNLOAD_TESTS).+\.py"
multiprocess_args="--processes=4 --process-timeout=540"
;;
*)
break
;;
esac
nosetests test --verbose $test_set --processes=4 --process-timeout=540
nosetests test --verbose $test_set $multiprocess_args