From 1072a1a9f0fd9594e2259ea37b52fe07f6d81f8f Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Fri, 6 Oct 2017 16:20:33 +0100 Subject: 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. --- devlib/utils/ssh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'devlib') 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) -- cgit v1.2.3