Skip to content

Commit

Permalink
Merge pull request #124 from floweisshardt/feature/result_summary
Browse files Browse the repository at this point in the history
print result summary
  • Loading branch information
floweisshardt authored Feb 6, 2020
2 parents e317352 + 816dd23 commit 4737b66
Showing 1 changed file with 13 additions and 1 deletion.
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

0 comments on commit 4737b66

Please sign in to comment.