mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
test: ssh: don't create dirs
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -1048,7 +1048,6 @@ class TestReproExternalSSH(TestReproExternalBase):
|
||||
return "scp {} {}".format(i, o)
|
||||
|
||||
def write(self, bucket, key, body):
|
||||
dest = "{}@127.0.0.1".format(getpass.getuser())
|
||||
path = posixpath.join(self._dir, key)
|
||||
|
||||
ssh = paramiko.SSHClient()
|
||||
@@ -1063,11 +1062,6 @@ class TestReproExternalSSH(TestReproExternalBase):
|
||||
except IOError:
|
||||
pass
|
||||
|
||||
stdin, stdout, stderr = ssh.exec_command(
|
||||
'ssh {} "mkdir -p $(dirname {})"'.format(dest, path)
|
||||
)
|
||||
self.assertEqual(stdout.channel.recv_exit_status(), 0)
|
||||
|
||||
with sftp.open(path, "w+") as fobj:
|
||||
fobj.write(body)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user