~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/lib/test_mgmt/test_management.py

  • Committer: patrick crews
  • Date: 2011-01-23 20:31:58 UTC
  • mto: (2119.2.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 2121.
  • Revision ID: gleebix@gmail.com-20110123203158-edw17l852lfcowpm
Removed innodb_bug53756.test as it was using MTR2 functionality we don't have.  Tweaks to error handling for certain cases (non-existent suite)

Show diffs side-by-side

added added

removed removed

Lines of Context:
206
206
    def report_executed_tests(self):
207
207
        """ Report out tests by status """
208
208
        total_executed_count = self.get_executed_test_count()
209
 
        executed_ratio = (float(total_executed_count)/float(self.total_test_count))
210
 
        executed_percent = executed_ratio * 100
 
209
        if self.total_test_count:
 
210
            executed_ratio = (float(total_executed_count)/float(self.total_test_count))
 
211
            executed_percent = executed_ratio * 100
 
212
        else:
 
213
        # We prevent division by 0 if we didn't find any tests to execute
 
214
            executed_ratio = 0
 
215
            executed_percent = 0
211
216
        self.logging.info("Executed %s/%s test cases, %.2f percent" %( total_executed_count
212
217
                                                                     , self.total_test_count
213
218
                                                                     , executed_percent))