зеркало из https://github.com/mozilla/gecko-dev.git
Bug 908644 - Add a global result summary to cppunittest output;r=ted
This commit is contained in:
Родитель
fa0754f81a
Коммит
ed657ae616
|
@ -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):
|
||||
|
|
Загрузка…
Ссылка в новой задаче