예제 #1
0
 def getIPFromSerial(self, logLevel=logging.DEBUG):
     self.serialLogin(logLevel)
     cli = bigtest.cli.Cli(self.serialConsole(logLevel))
     cli.gotoBashMode()
     output = cli.runCmd("ifconfig eth0")
     m = re.search(r"inet addr:([^\s]+)", output, re.M)
     bigtest.Assert(m and m.group(1) != "")
     return m.group(1)
예제 #2
0
 def getIPFromSerial(self, logLevel=logging.DEBUG):
     self.serialLogin(logLevel)
     cli = bigtest.cli.Cli(self.serialConsole(logLevel))
     cli.gotoBashMode()
     output = cli.runCmd("ifconfig eth0")
     m = re.search(r"inet addr:([^\s]+)", output, re.M)
     bigtest.Assert(m and m.group(1) != "")
     return m.group(1)
예제 #3
0
 def shutdown(self, delay=0, waitForState=False):
     cli = self.cli(logging.DEBUG)
     cli.gotoBashMode()
     cli.runCmd("sudo shutdown -h %d" % delay)
     if waitForState:
         bigtest.waitForProcessToStop(self.pid())
예제 #4
0
 def reboot(self):
     cli = self.cli(logging.DEBUG)
     cli.gotoBashMode()
     cli.runCmd("sudo reboot")
예제 #5
0
 def reboot(self):
     cli = self.cli(logging.DEBUG)
     cli.gotoBashMode()
     cli.runCmd("sudo reboot")
예제 #6
0
 def shutdown(self, delay=0):
     cli = self.cli(logging.DEBUG)
     cli.gotoBashMode()
     cli.runCmd("sudo shutdown -h %d" % delay)
예제 #7
0
 def shutdown(self, delay=0, waitForState=False):
     cli = self.cli(logging.DEBUG)
     cli.gotoBashMode()
     cli.runCmd("sudo shutdown -h %d" % delay)
     if waitForState:
         bigtest.waitForProcessToStop(self.pid())