Esempio n. 1
0
 def send(self, s):
     if not self.in_detect_fatal_error and self.linux_booted:
         self.in_detect_fatal_error = True
         error_detect.detect_fatal_error(self)
         self.in_detect_fatal_error = False
     if BFT_DEBUG:
         common.print_bold("%s = sending: %s" % (error_detect.caller_file_line(3), repr(s)))
     return super(OpenWrtRouter, self).send(s)
Esempio n. 2
0
 def send(self, s):
     if not self.in_detect_fatal_error and self.linux_booted:
         self.in_detect_fatal_error = True
         error_detect.detect_fatal_error(self)
         self.in_detect_fatal_error = False
     if BFT_DEBUG:
         common.print_bold("%s = sending: %s" %
                           (error_detect.caller_file_line(3), repr(s)))
     return super(OpenWrtRouter, self).send(s)
Esempio n. 3
0
 def expect(self, *args, **kwargs):
     if BFT_DEBUG:
         common.print_bold("%s = expecting: %s" % (error_detect.caller_file_line(2), repr(args[0])))
     try:
         return super(OpenWrtRouter, self).expect(*args, **kwargs)
     except:
         if not self.in_detect_fatal_error and self.linux_booted:
             self.in_detect_fatal_error = True
             error_detect.detect_fatal_error(self)
             self.in_detect_fatal_error = False
         if BFT_DEBUG:
             common.print_bold("expired")
         raise
     else:
         if BFT_DEBUG:
             common.print_bold("found")
Esempio n. 4
0
 def expect(self, *args, **kwargs):
     if BFT_DEBUG:
         common.print_bold("%s = expecting: %s" %
             (error_detect.caller_file_line(2), repr(args[0])))
     try:
         return super(OpenWrtRouter, self).expect(*args, **kwargs)
     except:
         if not self.in_detect_fatal_error and self.linux_booted:
             self.in_detect_fatal_error = True
             error_detect.detect_fatal_error(self)
             self.in_detect_fatal_error = False
         if BFT_DEBUG:
             common.print_bold("expired")
         raise
     else:
         if BFT_DEBUG:
             common.print_bold("found")