From f5906cb4abf98e773073f45425d6ca30b53009d5 Mon Sep 17 00:00:00 2001 From: Sascha Bischoff Date: Thu, 11 May 2017 10:28:05 +0100 Subject: [PATCH] Gem5Connection: Propagate the check_error_code flag Previously, the flag was not propagated, so the error code was always checked. With this change, we propage it to the _gem5_shell method. --- devlib/utils/ssh.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/devlib/utils/ssh.py b/devlib/utils/ssh.py index b82680e..f87746a 100644 --- a/devlib/utils/ssh.py +++ b/devlib/utils/ssh.py @@ -468,7 +468,9 @@ class Gem5Connection(TelnetConnection): # First check if the connection is set up to interact with gem5 self._check_ready() - output = self._gem5_shell(command, as_root=as_root) + output = self._gem5_shell(command, + check_exit_code=check_exit_code, + as_root=as_root) if strip_colors: output = strip_bash_colors(output) return output