Skip to content
This repository was archived by the owner on Jan 15, 2026. It is now read-only.

Commit 0d0723a

Browse files
committed
fw/descriptor: Add parareter list for Telenet Connections.
`TelnetConnection` no longer uses the same parameter list as `SSHConnection` so create it's own parameter list.
1 parent cfaef40 commit 0d0723a

1 file changed

Lines changed: 41 additions & 1 deletion

File tree

wa/framework/target/descriptor.py

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from devlib import (LinuxTarget, AndroidTarget, LocalLinuxTarget,
2121
ChromeOsTarget, Platform, Juno, TC2, Gem5SimulationPlatform,
2222
AdbConnection, SshConnection, LocalConnection,
23-
Gem5Connection)
23+
TelnetConnection, Gem5Connection)
2424
from devlib.target import DEFAULT_SHELL_PROMPT
2525

2626
from wa.framework import pluginloader
@@ -364,6 +364,46 @@ def get_descriptions(self): # pylint: disable=no-self-use
364364
""",
365365
deprecated=True),
366366
],
367+
TelnetConnection: [
368+
Parameter(
369+
'host', kind=str, mandatory=True,
370+
description="""
371+
Host name or IP address of the target.
372+
"""),
373+
Parameter(
374+
'username', kind=str, mandatory=True,
375+
description="""
376+
User name to connect with
377+
"""),
378+
Parameter(
379+
'password', kind=str,
380+
description="""
381+
Password to use.
382+
"""),
383+
Parameter(
384+
'port', kind=int,
385+
description="""
386+
The port SSH server is listening on on the target.
387+
"""),
388+
Parameter(
389+
'password_prompt', kind=str,
390+
description="""
391+
Password prompt to expect
392+
"""),
393+
Parameter(
394+
'original_prompt', kind=str,
395+
description="""
396+
Original shell prompt to expect.
397+
"""),
398+
Parameter(
399+
'sudo_cmd', kind=str,
400+
default="sudo -- sh -c {}",
401+
description="""
402+
Sudo command to use. Must have ``{}`` specified
403+
somewhere in the string it indicate where the command
404+
to be run via sudo is to go.
405+
"""),
406+
],
367407
Gem5Connection: [
368408
Parameter(
369409
'host', kind=str, mandatory=False,

0 commit comments

Comments
 (0)