Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print result summary #124

Merged
merged 1 commit into from
Feb 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion atf_core/scripts/analyser.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,13 @@ def print_result(self, atf_result):
print "*** SOME TESTS FAILED ***"
print "*************************"
print atf_result.groundtruth_error_message
self.print_result_summary(atf_result)
else:
print "\n"
print "********************"
print "*** ALL TESTS OK ***"
print "********************"
print "\n"
self.print_result_summary(atf_result)

def print_result_details(self, atf_result):
print "\n"
Expand All @@ -165,6 +166,17 @@ def print_result_details(self, atf_result):
print "**********************"
print atf_result

def print_result_summary(self, atf_result):
print "\n"
print "**********************"
print "*** result summary ***"
print "**********************"
for result in atf_result.results:
if result.groundtruth_result:
print "test '%s' (%s, %s, %s, %s): succeeded"%(result.name, result.robot, result.env, result.test_config, result.testblockset)
else:
print "test '%s' (%s, %s, %s, %s): failed"%(result.name, result.robot, result.env, result.test_config, result.testblockset)

class ATFAnalyserError(Exception):
pass

Expand Down