瀏覽代碼

patman: Add settings to the list of modules to doctest

The settings modules now has doctests, so run them.

Signed-off-by: Doug Anderson <dianders@chromium.org>
Doug Anderson 12 年之前
父節點
當前提交
656cffeb49
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      tools/patman/patman.py

+ 3 - 2
tools/patman/patman.py

@@ -85,8 +85,9 @@ if options.test:
     result = unittest.TestResult()
     suite.run(result)
 
-    suite = doctest.DocTestSuite('gitutil')
-    suite.run(result)
+    for module in ['gitutil', 'settings']:
+        suite = doctest.DocTestSuite(module)
+        suite.run(result)
 
     # TODO: Surely we can just 'print' result?
     print result