From: Jouni Malinen Date: Sun, 5 Jan 2014 11:10:29 +0000 (+0200) Subject: tests: Show missing descriptions in more helpful format X-Git-Tag: hostap_2_1~192 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aa5fcc558b0c2bf7e69be617d22eb916a3f1d101;p=thirdparty%2Fhostap.git tests: Show missing descriptions in more helpful format Signed-hostap: Jouni Malinen --- diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py index 525199911..b95368849 100755 --- a/tests/hwsim/run-tests.py +++ b/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__)