Changeset 24d51f7 in rtems-tools


Ignore:
Timestamp:
Nov 4, 2017, 12:22:08 AM (19 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
e5dad3c
Parents:
42e39d2
Message:

tester: Change the mail subject so it list by BSP in the archives.

Change the subject to place the arch/bsp first and then a short
score card for the tests so the archive can be listed by subject and
you can see regressions.

Location:
tester/rt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tester/rt/report.py

    r42e39d2 r24d51f7  
    209209                log.output(output)
    210210
    211     def score_card(self):
    212         l = []
    213         l += ['Passed:        %*d' % (self.total_len, self.passed)]
    214         l += ['Failed:        %*d' % (self.total_len, self.failed)]
    215         l += ['User Input:    %*d' % (self.total_len, self.user_input)]
    216         l += ['Expected Fail: %*d' % (self.total_len, self.expected_fail)]
    217         l += ['Indeterminate: %*d' % (self.total_len, self.indeterminate)]
    218         l += ['Benchmark:     %*d' % (self.total_len, self.benchmark)]
    219         l += ['Timeout:       %*d' % (self.total_len, self.timeouts)]
    220         l += ['Invalid:       %*d' % (self.total_len, self.invalids)]
    221         l += ['---------------%s' % ('-' * self.total_len)]
    222         l += ['Total:         %*d' % (self.total_len, self.total)]
    223         return os.linesep.join(l)
     211    def score_card(self, mode = 'full'):
     212        if mode == 'short':
     213            return 'Passed:%d Failed:%d Timeout:%d Invalid:%d' % (self.passed,
     214                                                                  self.failed,
     215                                                                  self.timeouts,
     216                                                                  self.invalids)
     217        elif mode == 'full':
     218            l = []
     219            l += ['Passed:        %*d' % (self.total_len, self.passed)]
     220            l += ['Failed:        %*d' % (self.total_len, self.failed)]
     221            l += ['User Input:    %*d' % (self.total_len, self.user_input)]
     222            l += ['Expected Fail: %*d' % (self.total_len, self.expected_fail)]
     223            l += ['Indeterminate: %*d' % (self.total_len, self.indeterminate)]
     224            l += ['Benchmark:     %*d' % (self.total_len, self.benchmark)]
     225            l += ['Timeout:       %*d' % (self.total_len, self.timeouts)]
     226            l += ['Invalid:       %*d' % (self.total_len, self.invalids)]
     227            l += ['---------------%s' % ('-' * self.total_len)]
     228            l += ['Total:         %*d' % (self.total_len, self.total)]
     229            return os.linesep.join(l)
     230        raise error.general('invalid socre card mode: %s' % (mode))
    224231
    225232    def failures(self):
  • tester/rt/test.py

    r42e39d2 r24d51f7  
    350350        log.notice(total_time)
    351351        if mail is not None and output is not None:
    352             subject = '[rtems-test] %s: %s' % (str(start_time).split('.')[0], bsp)
     352            m_arch = opts.defaults.expand('%{arch}')
     353            m_bsp = opts.defaults.expand('%{bsp}')
     354            subject = '[rtems-test] %s/%s: %s' % (m_arch,
     355                                                  m_bsp,
     356                                                  reports.score_card('short'))
    353357            body = [total_time, average_time,
    354358                    '', 'Host', '====', host.label(mode = 'all'),
Note: See TracChangeset for help on using the changeset viewer.