diff options
author | Sergei Trofimov <sergei.trofimov@arm.com> | 2017-10-06 16:20:33 +0100 |
---|---|---|
committer | Sergei Trofimov <sergei.trofimov@arm.com> | 2017-10-06 16:20:33 +0100 |
commit | 1072a1a9f0fd9594e2259ea37b52fe07f6d81f8f (patch) | |
tree | 8e08911c5de7c033452836e0937c17c68ebdb2f7 | |
parent | 661ba191147b453f3e1c9eb006b4fe1b2455b928 (diff) | |
download | devlib-1072a1a9f0fd9594e2259ea37b52fe07f6d81f8f.tar.gz |
utils/ssh: fix Gem5Connection.pull
Gem5Connection lists the path to be pulled, however it was not stripping
ANSI escape sequences from resulting output, which would corrupt the
path.
-rw-r--r-- | devlib/utils/ssh.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/devlib/utils/ssh.py b/devlib/utils/ssh.py index aaab2dd..27c52d2 100644 --- a/devlib/utils/ssh.py +++ b/devlib/utils/ssh.py @@ -444,7 +444,7 @@ class Gem5Connection(TelnetConnection): self._check_ready() result = self._gem5_shell("ls {}".format(source)) - files = result.split() + files = strip_bash_colors(result).split() for filename in files: dest_file = os.path.basename(filename) |