Fix two apparent bugs in abstract_ssh.py:

1) In send_file(), for delete_dest when falling back to scp, we check if the destination directory exists using ls.  But it uses remote_dest, which looks like "showard@myhost:/foo/bar".  So on the remote host (myhost here), it runs "ls -d showard@myhost:/foo/bar", which will of course fail.  I believe it's supposed to use dest instead of remote_dest.  This has been present since the introduction of this code, 12/2008.

2) _encode_remote_paths was calling utils.scp_remote_escape() to escape paths, but then using the original, unmodified paths instead.  this has been present since 2/2009.

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


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