1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-02-07 05:30:44 +00:00

SSH/Gem5Connection: Adds shell_echo parameter

This flag is used to indicate whether gem5 echos the exectued command
which requires removal for correct parsing.
This commit is contained in:
Marc Bonnici 2017-11-22 11:32:46 +00:00 committed by setrofim
parent 01b0ab8dce
commit 2a8f2c51d7

View File

@ -333,6 +333,7 @@ class Gem5Connection(TelnetConnection):
timeout=None,
password_prompt=None,
original_prompt=None,
strip_echoed_commands=False,
):
if host is not None:
host_system = socket.gethostname()
@ -349,6 +350,8 @@ class Gem5Connection(TelnetConnection):
self.is_rooted = True
self.password = None
self.port = None
# Flag to indicate whether commands are echoed by the simulated system
self.strip_echoed_commands = strip_echoed_commands
# Long timeouts to account for gem5 being slow
# Can be overriden if the given timeout is longer
self.default_timeout = 3600