[PATCH] hwsim tests: print failed tests nicer
Johannes Berg
johannes
Mon Nov 11 08:19:33 PST 2013
From: Johannes Berg <johannes.berg at intel.com>
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 at intel.com>
---
tests/hwsim/run-tests.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py
index 83009f1..697fd6f 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):
--
1.8.4.rc3
More information about the Hostap
mailing list