aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/test/ssh_basic_SUITE.erl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2016-01-28 12:17:59 +0100
committerHans Nilsson <[email protected]>2016-02-08 14:47:15 +0100
commit60f828c89fde5fc9fccfa6305512d9458f5293c4 (patch)
tree33c171beccffd6c906117fbce075ac6b554663a5 /lib/ssh/test/ssh_basic_SUITE.erl
parentb62cd7fd5a922cfdff05bfba9512ce36ce100116 (diff)
downloadotp-60f828c89fde5fc9fccfa6305512d9458f5293c4.tar.gz
otp-60f828c89fde5fc9fccfa6305512d9458f5293c4.tar.bz2
otp-60f828c89fde5fc9fccfa6305512d9458f5293c4.zip
ssh: fixes port_command failure on WIndows in ssh_test_cli.erl
Diffstat (limited to 'lib/ssh/test/ssh_basic_SUITE.erl')
-rw-r--r--lib/ssh/test/ssh_basic_SUITE.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/ssh/test/ssh_basic_SUITE.erl b/lib/ssh/test/ssh_basic_SUITE.erl
index 6c4c215b3d..4b53f6ec57 100644
--- a/lib/ssh/test/ssh_basic_SUITE.erl
+++ b/lib/ssh/test/ssh_basic_SUITE.erl
@@ -601,10 +601,14 @@ cli(Config) when is_list(Config) ->
process_flag(trap_exit, true),
SystemDir = filename:join(?config(priv_dir, Config), system),
UserDir = ?config(priv_dir, Config),
-
+
+ TmpDir = filename:join(?config(priv_dir,Config), "tmp"),
+ ok = ssh_test_lib:del_dirs(TmpDir),
+ ok = file:make_dir(TmpDir),
+
{_Pid, Host, Port} = ssh_test_lib:daemon([{system_dir, SystemDir},{user_dir, UserDir},
{password, "morot"},
- {ssh_cli, {ssh_test_cli, [cli]}},
+ {ssh_cli, {ssh_test_cli, [cli,TmpDir]}},
{subsystems, []},
{failfun, fun ssh_test_lib:failfun/2}]),
ct:sleep(500),