hwsim tests: Print failed tests nicer

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>
This commit is contained in:
Johannes Berg 2013-11-11 17:19:33 +01:00 committed by Jouni Malinen
parent dcd25d4c3b
commit a572f0b960

View file

@ -372,9 +372,9 @@ def main():
if len(failed): if len(failed):
logger.info("passed {} test case(s)".format(len(passed))) logger.info("passed {} test case(s)".format(len(passed)))
logger.info("skipped {} test case(s)".format(len(skipped))) 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: if args.loglevel == logging.WARNING:
print "failed tests: " + str(failed) print "failed tests: " + ' '.join(failed)
sys.exit(1) sys.exit(1)
logger.info("passed all {} test case(s)".format(len(passed))) logger.info("passed all {} test case(s)".format(len(passed)))
if len(skipped): if len(skipped):