]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hwsim tests: Print failed tests nicer
authorJohannes Berg <johannes.berg@intel.com>
Mon, 11 Nov 2013 16:19:33 +0000 (17:19 +0100)
committerJouni Malinen <j@w1.fi>
Sun, 17 Nov 2013 14:46:41 +0000 (16:46 +0200)
There's no reason to format the failed tests as a python
list, just print a (space-separated) list of test names.

Signed-hostap: Johannes Berg <johannes.berg@intel.com>

tests/hwsim/run-tests.py

index 83009f1a056da096eb132b16a7c4c8e74fc7bae3..697fd6f5a6db3a988bcdb287ed955942fef8a97d 100755 (executable)
@@ -372,9 +372,9 @@ def main():
     if len(failed):
         logger.info("passed {} test case(s)".format(len(passed)))
         logger.info("skipped {} test case(s)".format(len(skipped)))
-        logger.info("failed tests: " + str(failed))
+        logger.info("failed tests: " + ' '.join(failed))
         if args.loglevel == logging.WARNING:
-            print "failed tests: " + str(failed)
+            print "failed tests: " + ' '.join(failed)
         sys.exit(1)
     logger.info("passed all {} test case(s)".format(len(passed)))
     if len(skipped):