[Lldb-commits] [lldb] r244782 - Don't print number of failures and percentage if no tests ran.
Chaoren Lin via lldb-commits
lldb-commits at lists.llvm.org
Wed Aug 12 11:02:51 PDT 2015
Author: chaoren
Date: Wed Aug 12 13:02:51 2015
New Revision: 244782
URL: http://llvm.org/viewvc/llvm-project?rev=244782&view=rev
Log:
Don't print number of failures and percentage if no tests ran.
Reviewers: zturner
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D11909
Modified:
lldb/trunk/test/dosep.py
Modified: lldb/trunk/test/dosep.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/dosep.py?rev=244782&r1=244781&r2=244782&view=diff
==============================================================================
--- lldb/trunk/test/dosep.py (original)
+++ lldb/trunk/test/dosep.py Wed Aug 12 13:02:51 2015
@@ -443,10 +443,16 @@ Run lldb test suite using a separate pro
touch(os.path.join(session_dir, "{}-{}".format(result, test_name)))
print
- print "Ran %d test suites (%d failed) (%f%%)" % (num_test_files, len(failed),
- (100.0 * len(failed) / num_test_files) if num_test_files > 0 else float('NaN'))
- print "Ran %d test cases (%d failed) (%f%%)" % (num_tests, all_fails,
- (100.0 * all_fails / num_tests) if num_tests > 0 else float('NaN'))
+ sys.stdout.write("Ran %d test suites" % num_test_files)
+ if num_test_files > 0:
+ sys.stdout.write(" (%d failed) (%f%%)" % (
+ len(failed), 100.0 * len(failed) / num_test_files))
+ print
+ sys.stdout.write("Ran %d test cases" % num_tests)
+ if num_tests > 0:
+ sys.stdout.write(" (%d failed) (%f%%)" % (
+ all_fails, 100.0 * all_fails / num_tests))
+ print
if len(failed) > 0:
failed.sort()
print "Failing Tests (%d)" % len(failed)
More information about the lldb-commits
mailing list