Exemple #1
0
    def recover(self):
        if self.__class__.__name__ == "RootFSBootTest":
            try:
                if board.linux_booted:
                    board.sendline('ps auxfw || ps w')
                    board.expect(prompt)
                    board.sendline('iptables -S')
                    board.expect(prompt)
            except:
                pass

            board.close()
            lib.common.test_msg("Unable to boot, skipping remaining tests...")
            return
        try:
            # let user interact with console if test failed
            try:
                board.sendline()
                board.sendline()
                if not self.config.batch:
                    board.interact()
            except:
                pass
            if self.reboot == True and self.reset_after_fail:
                self.boot(self.reflash)
            self.reboot = True
        except Exception as e:
            print("Unable to recover, %s" % e)
            self.assertEqual(1, 0, e)
Exemple #2
0
    def recover(self):
        if self.__class__.__name__ == "RootFSBootTest":
            try:
                if board.linux_booted:
                    board.sendline('ps auxfw || ps w')
                    board.expect(prompt)
                    board.sendline('iptables -S')
                    board.expect(prompt)
            except:
                pass

            board.close()
            lib.common.test_msg("Unable to boot, skipping remaining tests...")
            return
        try:
            # let user interact with console if test failed
            try:
                board.sendline()
                board.sendline()
                if not self.config.batch:
                    board.interact()
            except:
                pass
            if self.reboot == True and self.reset_after_fail:
                self.boot(self.reflash)
            self.reboot = True
        except Exception as e:
            print("Unable to recover, %s" % e)
            self.assertEqual(1, 0, e)
Exemple #3
0
 def recover(self):
     if self.__class__.__name__ == "RootFSBootTest":
         board.close()
         lib.common.test_msg("Unable to boot, skipping remaining tests...")
         return
     try:
         # let user interact with console if test failed
         try:
             board.sendline()
             board.sendline()
             board.interact()
         except:
             pass
         if self.reboot == True and self.reset_after_fail:
             self.boot(self.reflash)
         self.reboot = True
     except Exception as e:
         print("Unable to recover, %s" % e)
         self.assertEqual(1, 0, e)
 def recover(self):
     if self.__class__.__name__ == "RootFSBootTest":
         board.close()
         lib.common.test_msg("Unable to boot, skipping remaining tests...")
         return
     try:
         # let user interact with console if test failed
         try:
             board.sendline()
             board.sendline()
             board.interact()
         except:
             pass
         if self.reboot == True and self.reset_after_fail:
             self.boot(self.reflash)
         self.reboot = True
     except Exception as e:
         print("Unable to recover, %s" % e)
         self.assertEqual(1, 0, e)