mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-11 06:13:21 +08:00
[travis] Only download tests should be run in parallel
This commit is contained in:
parent
cdb0ba2119
commit
f17ce2c5c3
@ -3,6 +3,7 @@
|
|||||||
DOWNLOAD_TESTS="age_restriction|download|subtitles|write_annotations|iqiyi_sdk_interpreter"
|
DOWNLOAD_TESTS="age_restriction|download|subtitles|write_annotations|iqiyi_sdk_interpreter"
|
||||||
|
|
||||||
test_set=""
|
test_set=""
|
||||||
|
multiprocess_args=""
|
||||||
|
|
||||||
case "$YTDL_TEST_SET" in
|
case "$YTDL_TEST_SET" in
|
||||||
core)
|
core)
|
||||||
@ -10,10 +11,11 @@ case "$YTDL_TEST_SET" in
|
|||||||
;;
|
;;
|
||||||
download)
|
download)
|
||||||
test_set="-I test_(?!$DOWNLOAD_TESTS).+\.py"
|
test_set="-I test_(?!$DOWNLOAD_TESTS).+\.py"
|
||||||
|
multiprocess_args="--processes=4 --process-timeout=540"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
nosetests test --verbose $test_set --processes=4 --process-timeout=540
|
nosetests test --verbose $test_set $multiprocess_args
|
||||||
|
Loading…
Reference in New Issue
Block a user