1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-05 18:31:12 +01: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:
Marc Bonnici 2020-11-06 15:57:28 +00:00 committed by setrofim
parent 5dd3abe564
commit f1aff6b5a8

View File

@ -20,6 +20,7 @@ from devlib import (LinuxTarget, AndroidTarget, LocalLinuxTarget,
AdbConnection, SshConnection, LocalConnection,
TelnetConnection, Gem5Connection)
from devlib.target import DEFAULT_SHELL_PROMPT
from devlib.utils.ssh import DEFAULT_SSH_SUDO_COMMAND
from wa.framework import pluginloader
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. """),
Parameter(
'sudo_cmd', kind=str,
default="sudo -- sh -c {}",
default=DEFAULT_SSH_SUDO_COMMAND,
description="""
Sudo command to use. Must have ``{}`` specified
somewhere in the string it indicate where the command