Skip to content
Snippets Groups Projects
Commit 61e9d18e authored by Christoph Lehmann's avatar Christoph Lehmann
Browse files

[scr/doc] fail if wrong input state detected

parent 3cc0b73c
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,7 @@ undocumented = []
unneeded_comments = []
wrong_input = []
no_doc_page = []
wrong_status = False
for inline in sys.stdin:
inline = inline.strip().split("@@@")
......@@ -56,6 +57,7 @@ for inline in sys.stdin:
# unneeded.append(inline[1:])
else:
debug("ERROR: unrecognized status {}".format(status))
wrong_status = True
if (undocumented):
......@@ -100,7 +102,8 @@ if (no_doc_page):
# exit with error status if something was not documented.
if (not not undocumented) or (not not unneeded_comments) \
or (not not wrong_input) or (not not no_doc_page):
or (not not wrong_input) or (not not no_doc_page) \
or wrong_status:
sys.exit(1)
sys.exit(0)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment