diff options
Diffstat (limited to 'lib/zephyr_run_doctests')
-rwxr-xr-x | lib/zephyr_run_doctests | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/zephyr_run_doctests b/lib/zephyr_run_doctests index 03e111b..6bcb2cb 100755 --- a/lib/zephyr_run_doctests +++ b/lib/zephyr_run_doctests @@ -1,6 +1,12 @@ #!/usr/bin/python -import doctest +import sys, doctest + +failures, tests = doctest.testfile("zephyr_tests.txt") + +print failures, 'failures out of', tests, 'tests.' +if failures: + sys.exit(1) + -print doctest.testfile("zephyr_tests.txt") |