Ignore:
Timestamp:
24/05/06 14:08:04 (14 years ago)
Author:
spascoe
Message:

Logging to syslog has been changed to use LOG_DEBUG. The tests have
been changed to assume messages are logged to /var/log/bbftpd/bbftpd.log.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/trunk/test/test_bbftpd.py

    r997 r1003  
    2323 
    2424        # We want to mark the beginning of this test case in syslog 
    25         syslog.openlog('test_bbftpd.py') 
    26         syslog.syslog(syslog.LOG_INFO, 'Starting ExtendedAPITestCase') 
     25        syslog.openlog('test_bbftpd.py', 0, syslog.LOG_LOCAL0) 
     26        syslog.syslog(syslog.LOG_DEBUG, 'Starting ExtendedAPITestCase') 
    2727         
    2828    def tearDown(self): 
    29         syslog.syslog(syslog.LOG_INFO, 'Ended ExtendedAPITestCase') 
     29        syslog.syslog(syslog.LOG_DEBUG, 'Ended ExtendedAPITestCase') 
    3030        syslog.closelog() 
    3131 
     
    146146 
    147147    def _startServer(self): 
    148         os.system('%s -b -l INFORMATION' % self.BBFTPD) 
     148        os.system('%s -b -l DEBUG' % self.BBFTPD) 
    149149 
    150150    def _getServerPids(self): 
     
    164164        raise RuntimeError, 'Failed to stop server' 
    165165 
    166     def _readSyslog(self, logfile="/var/log/messages"): 
     166    def _readSyslog(self, logfile="/var/log/bbftpd/bbftpd.log"): 
    167167        """Get all bbftpd messages from syslog for this test case. 
    168168 
Note: See TracChangeset for help on using the changeset viewer.