提交 4bd37444 编写于 作者: C Cleber Rosa

VM plugin: add port number as option

For parity of features with the remote plugin, let's add the SSH
port as an option of the VM plugin as well.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 3a85df61
......@@ -136,6 +136,7 @@ class VMTestResult(RemoteTestResult):
try:
# Finish remote setup and copy the tests
self.args.remote_hostname = self.args.vm_hostname
self.args.remote_port = self.args.vm_port
self.args.remote_username = self.args.vm_username
self.args.remote_password = self.args.vm_password
self.args.remote_no_copy = self.args.vm_no_copy
......
......@@ -55,6 +55,10 @@ class VM(CLI):
'default Avocado attempts to '
'automatically find the VM IP '
'address.'))
self.vm_parser.add_argument('--vm-port', dest='vm_port',
default=22, type=int, help='Specify '
'the port number to login on VM. '
'Current: 22')
self.vm_parser.add_argument('--vm-username', default=getpass.getuser(),
help='Specify the username to login on VM')
self.vm_parser.add_argument('--vm-password',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册