scripts/liberty: Fail if doctests fail.

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
This commit is contained in:
Tim 'mithro' Ansell 2020-07-20 16:15:13 -07:00
parent 3e9068dbf1
commit e14136b064
1 changed files with 3 additions and 1 deletions

View File

@ -1149,5 +1149,7 @@ def main():
if __name__ == "__main__":
import doctest
doctest.testmod()
fail, _ = doctest.testmod()
if fail > 0:
sys.exit(1)
sys.exit(main())