You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
457 B

  1. #!/bin/bash
  2. DOWNLOAD_TESTS="age_restriction|download|subtitles|write_annotations|iqiyi_sdk_interpreter"
  3. test_set=""
  4. multiprocess_args=""
  5. case "$YTDL_TEST_SET" in
  6. core)
  7. test_set="-I test_($DOWNLOAD_TESTS)\.py"
  8. ;;
  9. download)
  10. test_set="-I test_(?!$DOWNLOAD_TESTS).+\.py"
  11. multiprocess_args="--processes=4 --process-timeout=540"
  12. ;;
  13. *)
  14. break
  15. ;;
  16. esac
  17. nosetests test --verbose $test_set $multiprocess_args