mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 20:11:20 +00:00
fw/descriptor: Add parameter list for Telenet connections.
`TelnetConnection` no longer uses the same parameter list as `SSHConnection` so create it's own parameter list.
This commit is contained in:
parent
62ca7c0c36
commit
31f4c0fd5f
@ -20,7 +20,7 @@ from copy import copy
|
||||
from devlib import (LinuxTarget, AndroidTarget, LocalLinuxTarget,
|
||||
ChromeOsTarget, Platform, Juno, TC2, Gem5SimulationPlatform,
|
||||
AdbConnection, SshConnection, LocalConnection,
|
||||
Gem5Connection)
|
||||
TelnetConnection, Gem5Connection)
|
||||
from devlib.target import DEFAULT_SHELL_PROMPT
|
||||
|
||||
from wa.framework import pluginloader
|
||||
@ -364,6 +364,46 @@ CONNECTION_PARAMS = {
|
||||
""",
|
||||
deprecated=True),
|
||||
],
|
||||
TelnetConnection: [
|
||||
Parameter(
|
||||
'host', kind=str, mandatory=True,
|
||||
description="""
|
||||
Host name or IP address of the target.
|
||||
"""),
|
||||
Parameter(
|
||||
'username', kind=str, mandatory=True,
|
||||
description="""
|
||||
User name to connect with
|
||||
"""),
|
||||
Parameter(
|
||||
'password', kind=str,
|
||||
description="""
|
||||
Password to use.
|
||||
"""),
|
||||
Parameter(
|
||||
'port', kind=int,
|
||||
description="""
|
||||
The port SSH server is listening on on the target.
|
||||
"""),
|
||||
Parameter(
|
||||
'password_prompt', kind=str,
|
||||
description="""
|
||||
Password prompt to expect
|
||||
"""),
|
||||
Parameter(
|
||||
'original_prompt', kind=str,
|
||||
description="""
|
||||
Original shell prompt to expect.
|
||||
"""),
|
||||
Parameter(
|
||||
'sudo_cmd', kind=str,
|
||||
default="sudo -- sh -c {}",
|
||||
description="""
|
||||
Sudo command to use. Must have ``{}`` specified
|
||||
somewhere in the string it indicate where the command
|
||||
to be run via sudo is to go.
|
||||
"""),
|
||||
],
|
||||
Gem5Connection: [
|
||||
Parameter(
|
||||
'host', kind=str, mandatory=False,
|
||||
|
Loading…
x
Reference in New Issue
Block a user