aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/test/ssh_test_cli.erl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2016-04-13 13:19:10 +0200
committerHans Nilsson <[email protected]>2016-04-29 13:17:52 +0200
commit020e62c9619b518620d216cf0caef55fe129d4c3 (patch)
tree8249e590918f2ffc6ef256b2a691be9a9b09983d /lib/ssh/test/ssh_test_cli.erl
parent223b123f576e726c18bcd38fa2b866d23f1a14a3 (diff)
downloadotp-020e62c9619b518620d216cf0caef55fe129d4c3.tar.gz
otp-020e62c9619b518620d216cf0caef55fe129d4c3.tar.bz2
otp-020e62c9619b518620d216cf0caef55fe129d4c3.zip
ssh: centralize and adjust port spawning for test_suites into ssh_test_lib
Diffstat (limited to 'lib/ssh/test/ssh_test_cli.erl')
-rw-r--r--lib/ssh/test/ssh_test_cli.erl9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/ssh/test/ssh_test_cli.erl b/lib/ssh/test/ssh_test_cli.erl
index 697ddb730d..f96b9967d2 100644
--- a/lib/ssh/test/ssh_test_cli.erl
+++ b/lib/ssh/test/ssh_test_cli.erl
@@ -75,10 +75,11 @@ terminate(_Why, _S) ->
run_portprog(User, cli, TmpDir) ->
Pty_bin = os:find_executable("cat"),
- open_port({spawn_executable, Pty_bin},
- [stream, {cd, TmpDir}, {env, [{"USER", User}]},
- {args, []}, binary,
- exit_status, use_stdio, stderr_to_stdout]).
+ ssh_test_lib:open_port({spawn_executable, Pty_bin},
+ [stream,
+ {cd, TmpDir},
+ {env, [{"USER", User}]},
+ {args, []}]).
get_ssh_user(Ref) ->
[{user, User}] = ssh:connection_info(Ref, [user]),