tools/test-help-documentation: Verify api/ docs.

This commit is contained in:
Eeshan Garg
2017-11-11 22:12:34 -03:30
committed by Tim Abbott
parent 9dd5d6e999
commit e85d0747d4
2 changed files with 31 additions and 18 deletions

View File

@@ -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)