Changeset c73e030 in rtems-tools


Ignore:
Timestamp:
Oct 24, 2017, 11:13:28 PM (19 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
bb218b6
Parents:
41d0c34
Message:

tester: Check mail parameters early so users can fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tester/rt/test.py

    r41d0c34 rc73e030  
    289289        if opts.find_arg('--mail'):
    290290            mail = mailer.mail(opts)
     291            # Request these now to generate any errors.
     292            from_addr = mail.from_address()
     293            smtp_host = mail.smtp_host()
     294            to_addr = opts.find_arg('--mail-to')
     295            if to_addr:
     296                to_addr = to_addr[1]
     297            else:
     298                to_addr = 'build@rtems.org'
    291299            output = log_capture()
    292300        log.notice('RTEMS Testing - Tester, %s' % (version.str()))
     
    385393        log.notice(total_time)
    386394        if mail is not None and output is not None:
    387             to_addr = opts.find_arg('--mail-to')
    388             if to_addr:
    389                 to_addr = to_addr[1]
    390             else:
    391                 to_addr = 'build@rtems.org'
    392395            subject = '[rtems-test] %s: %s' % (str(start_time).split('.')[0], bsp)
    393396            body = [total_time, average_time,
Note: See TracChangeset for help on using the changeset viewer.