]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Show missing descriptions in more helpful format
authorJouni Malinen <j@w1.fi>
Sun, 5 Jan 2014 11:10:29 +0000 (13:10 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 7 Jan 2014 08:45:10 +0000 (10:45 +0200)
Signed-hostap: Jouni Malinen <j@w1.fi>

tests/hwsim/run-tests.py

index 525199911b0c1296df06bcf675c98087165dba3f..b953688497af684068f5dad95b6b9cbd6c5840cb 100755 (executable)
@@ -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__)