Improve test.

This commit is contained in:
Felix Fontein 2023-04-16 16:38:59 +02:00
parent 94fe13845f
commit 81f036f2d1
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,9 @@
{ {
"include_symlinks": false, "include_symlinks": false,
"prefixes": [ "prefixes": [
"docs/docsite/" "docs/docsite/",
"plugins/",
"roles/"
], ],
"output": "path-line-column-message", "output": "path-line-column-message",
"requirements": [ "requirements": [

View File

@ -13,8 +13,6 @@ import subprocess
def main(): def main():
"""Main entry point.""" """Main entry point."""
if not os.path.isdir(os.path.join('docs', 'docsite')):
return
p = subprocess.run(['antsibull-docs', 'lint-collection-docs', '--plugin-docs', '--disallow-semantic-markup', '--skip-rstcheck', '.'], check=False) p = subprocess.run(['antsibull-docs', 'lint-collection-docs', '--plugin-docs', '--disallow-semantic-markup', '--skip-rstcheck', '.'], check=False)
if p.returncode not in (0, 3): if p.returncode not in (0, 3):
print('{0}:0:0: unexpected return code {1}'.format(sys.argv[0], p.returncode)) print('{0}:0:0: unexpected return code {1}'.format(sys.argv[0], p.returncode))