Added more helpful error message for libbe modules missing test suites.
authorW. Trevor King <wking@drexel.edu>
Fri, 28 Nov 2008 15:15:15 +0000 (10:15 -0500)
committerW. Trevor King <wking@drexel.edu>
Fri, 28 Nov 2008 15:15:15 +0000 (10:15 -0500)
test.py

diff --git a/test.py b/test.py
index bf57d1ec0d015083586432d3b89e133d8e7560e6..ef876bacad8846498ac7b64100bc19e6dd582f8a 100644 (file)
--- a/test.py
+++ b/test.py
@@ -22,6 +22,8 @@ if len(sys.argv) > 1:
         if mod is not None and hasattr(mod, "suite"):
             suite.addTest(mod.suite)
             match = True
+        else:
+            print "Module \"%s\" has no test suite" % submodname
         mod = plugin.get_plugin("becommands", submodname)
         if mod is not None:
             suite.addTest(doctest.DocTestSuite(mod))