mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 16:14:02 +00:00
tools/test-help-documentation: Verify api/ docs.
This commit is contained in:
@@ -26,10 +26,12 @@ LOG_FILE = 'var/help-documentation/server.log'
|
||||
external_host = "localhost:9981"
|
||||
|
||||
with test_server_running(options.force, external_host, log_file=LOG_FILE, dots=True, use_db=False):
|
||||
ret = subprocess.call(('scrapy', 'crawl_with_status', 'help_documentation_crawler'),
|
||||
cwd='tools/documentation_crawler')
|
||||
ret_help_doc = subprocess.call(('scrapy', 'crawl_with_status', 'help_documentation_crawler'),
|
||||
cwd='tools/documentation_crawler')
|
||||
ret_api_doc = subprocess.call(('scrapy', 'crawl_with_status', 'api_documentation_crawler'),
|
||||
cwd='tools/documentation_crawler')
|
||||
|
||||
if ret != 0:
|
||||
if ret_help_doc != 0 or ret_api_doc != 0:
|
||||
print("\033[0;91m")
|
||||
print("Failed")
|
||||
print("\033[0m")
|
||||
@@ -39,4 +41,4 @@ else:
|
||||
print("\033[0m")
|
||||
|
||||
|
||||
sys.exit(ret)
|
||||
sys.exit(ret_help_doc or ret_api_doc)
|
||||
|
Reference in New Issue
Block a user