Fix the SCP fallback path in AbstractSSHHost.get_file().  We were passing the globbing paths to utils.scp_remote_escape(), which would then helpfully escape the globbing characters, making them useless.  This avoids that by escape the path earlier, then attaching the globbing pattern, and then avoiding the later escape.  I also had to change the "ls" glob check to put the globbing pattern outside the quotes, since ls will otherwise treat the globbing pattern as a literal (whereas scp won't).

Signed-off-by: Steve Howard <showard@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3884 592f7852-d20e-0410-864c-8624ca9c26a4
1 file changed