mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 12:06:08 +00:00
fw/descriptor: Update sudo_cmd default
The WA default `sudo_cmd` is out of date compared to devlib. Update the parameter to use the value directly from devlib to prevent these from being out of sync in the future.
This commit is contained in:
parent
5dd3abe564
commit
f1aff6b5a8
@ -20,6 +20,7 @@ from devlib import (LinuxTarget, AndroidTarget, LocalLinuxTarget,
|
|||||||
AdbConnection, SshConnection, LocalConnection,
|
AdbConnection, SshConnection, LocalConnection,
|
||||||
TelnetConnection, Gem5Connection)
|
TelnetConnection, Gem5Connection)
|
||||||
from devlib.target import DEFAULT_SHELL_PROMPT
|
from devlib.target import DEFAULT_SHELL_PROMPT
|
||||||
|
from devlib.utils.ssh import DEFAULT_SSH_SUDO_COMMAND
|
||||||
|
|
||||||
from wa.framework import pluginloader
|
from wa.framework import pluginloader
|
||||||
from wa.framework.configuration.core import get_config_point_map
|
from wa.framework.configuration.core import get_config_point_map
|
||||||
@ -369,7 +370,7 @@ CONNECTION_PARAMS = {
|
|||||||
their host key does not match the systems known host keys. """),
|
their host key does not match the systems known host keys. """),
|
||||||
Parameter(
|
Parameter(
|
||||||
'sudo_cmd', kind=str,
|
'sudo_cmd', kind=str,
|
||||||
default="sudo -- sh -c {}",
|
default=DEFAULT_SSH_SUDO_COMMAND,
|
||||||
description="""
|
description="""
|
||||||
Sudo command to use. Must have ``{}`` specified
|
Sudo command to use. Must have ``{}`` specified
|
||||||
somewhere in the string it indicate where the command
|
somewhere in the string it indicate where the command
|
||||||
|
Loading…
x
Reference in New Issue
Block a user