Home | History | Annotate | Download | only in utils

Lines Matching refs:port

11 confirm process has stopped and port is free.
23 """Bad port, missing artifact or non-existant imagedir."""
31 @param port: Port number for emulator's adbd. Note this port is one higher
32 than the port in the emulator's serial number.
35 def __init__(self, imagedir, port, run=utils.run):
36 if not port % 2 or port < 5555 or port > 5585:
37 raise EmulatorManagerException('Port must be an odd number '
45 self.port = port
51 """Wait for emulator on our port to stop.
79 """Start an emulator with the images and port specified.
81 If an emulator is already running on the port it will be killed.
84 time.sleep(1) # Wait for port to be free
87 '-dmS', 'emulator-%s' % self.port, 'qemu-system-arm',
102 '-redir', 'tcp:%s::5555' % self.port,
117 """Detect the PID of a qemu process running on our port.
123 if ':%s' % self.port in proc:
132 Signal is sent to any running qemu process on our port regardless of how
133 it was started. Silent no-op if no running qemu processes on the port.
150 raise RuntimeError('Emulator running on port %s failed to stop.'
151 % self.port)