Bug 908644 - Add a global result summary to cppunittest output;r=ted

This commit is contained in:
Dan Minor 2013-08-23 09:28:50 -04:00
Родитель fa0754f81a
Коммит ed657ae616
1 изменённых файлов: 11 добавлений и 3 удалений

Просмотреть файл

@ -106,11 +106,19 @@ class CPPUnitTests(object):
"""
self.xre_path = xre_path
env = self.build_environment()
result = True
pass_count = 0
fail_count = 0
for prog in programs:
single_result = self.run_one_test(prog, env, symbols_path)
result = result and single_result
return result
if single_result:
pass_count += 1
else:
fail_count += 1
log.info("Result summary:")
log.info("Passed: %d" % pass_count)
log.info("Failed: %d" % fail_count)
return fail_count == 0
class CPPUnittestOptions(OptionParser):
def __init__(self):