浏览代码

[Makefile,devscripts/run_tests.sh] Actually exclude network tests

Closes #14858
Yen Chi Hsuan 7 年之前
父节点
当前提交
82a62de192
共有 2 个文件被更改,包括 12 次插入2 次删除
  1. 10 1
      Makefile
  2. 2 1
      devscripts/run_tests.sh

+ 10 - 1
Makefile

@@ -36,8 +36,17 @@ test:
 
 
 ot: offlinetest
 ot: offlinetest
 
 
+# Keep this list in sync with devscripts/run_tests.sh
 offlinetest: codetest
 offlinetest: codetest
-	$(PYTHON) -m nose --verbose test --exclude test_download.py --exclude test_age_restriction.py --exclude test_subtitles.py --exclude test_write_annotations.py --exclude test_youtube_lists.py --exclude test_iqiyi_sdk_interpreter.py --exclude test_socks.py
+	$(PYTHON) -m nose --verbose test \
+		--exclude test_age_restriction.py \
+		--exclude test_download.py \
+		--exclude test_iqiyi_sdk_interpreter.py \
+		--exclude test_socks.py \
+		--exclude test_subtitles.py \
+		--exclude test_write_annotations.py \
+		--exclude test_youtube_lists.py \
+		--exclude test_youtube_signature.py
 
 
 tar: youtube-dl.tar.gz
 tar: youtube-dl.tar.gz
 
 

+ 2 - 1
devscripts/run_tests.sh

@@ -1,6 +1,7 @@
 #!/bin/bash
 #!/bin/bash
 
 
-DOWNLOAD_TESTS="age_restriction|download|subtitles|write_annotations|iqiyi_sdk_interpreter|youtube_lists"
+# Keep this list in sync with the `offlinetest` target in Makefile
+DOWNLOAD_TESTS="age_restriction|download|iqiyi_sdk_interpreter|socks|subtitles|write_annotations|youtube_lists|youtube_signature"
 
 
 test_set=""
 test_set=""
 multiprocess_args=""
 multiprocess_args=""