From: Johannes Berg Date: Mon, 11 Nov 2013 16:19:33 +0000 (+0100) Subject: hwsim tests: Print failed tests nicer X-Git-Tag: hostap_2_1~554 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a572f0b960fedf20adb5d926df29893f48316f27;p=thirdparty%2Fhostap.git 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 --- diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py index 83009f1a0..697fd6f5a 100755 --- a/tests/hwsim/run-tests.py +++ b/tests/hwsim/run-tests.py @@ -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):