mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-08 15:28:26 +01:00
test: ssh: create external output dir
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -1062,6 +1062,11 @@ class TestReproExternalSSH(TestReproExternalBase):
|
||||
except IOError:
|
||||
pass
|
||||
|
||||
stdin, stdout, stderr = ssh.exec_command(
|
||||
"mkdir -p $(dirname {})".format(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