Browse Source

tests: Show missing descriptions in more helpful format

Signed-hostap: Jouni Malinen <j@w1.fi>
Jouni Malinen 11 years ago
parent
commit
aa5fcc558b
1 changed files with 4 additions and 1 deletions
  1. 4 1
      tests/hwsim/run-tests.py

+ 4 - 1
tests/hwsim/run-tests.py

@@ -230,7 +230,10 @@ def main():
     if args.update_tests_db:
         for t in tests:
             name = t.__name__.replace('test_', '', 1)
-            print name + " - " + t.__doc__
+            if t.__doc__ is None:
+                print name + " - MISSING DESCRIPTION"
+            else:
+                print name + " - " + t.__doc__
             if conn:
                 sql = 'INSERT OR REPLACE INTO tests(test,description) VALUES (?, ?)'
                 params = (name, t.__doc__)