From 2a8a08a1752392a5e9e745c2a0929642812333e0 Mon Sep 17 00:00:00 2001 From: Andrey Pampukha Date: Tue, 11 May 2010 17:54:13 +0200 Subject: Modify cookie handling in ct_slave --- lib/common_test/src/ct_slave.erl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/common_test/src/ct_slave.erl') diff --git a/lib/common_test/src/ct_slave.erl b/lib/common_test/src/ct_slave.erl index 57170220b8..bf7ee8863c 100644 --- a/lib/common_test/src/ct_slave.erl +++ b/lib/common_test/src/ct_slave.erl @@ -321,9 +321,9 @@ do_start(Host, Node, Options)-> long_or_short()-> case net_kernel:longnames() of true-> - "-name"; + " -name "; false-> - "-sname" + " -sname " end. % get the localhost's name, depending on the using name policy @@ -339,7 +339,9 @@ gethostname()-> % get cmd for starting Erlang get_cmd(Node)-> - "erl -detached -noinput "++ long_or_short() ++ " " ++ atom_to_list(Node). + Cookie = erlang:get_cookie(), + "erl -detached -noinput -setcookie "++ atom_to_list(Cookie) ++ + long_or_short() ++ atom_to_list(Node). % spawn node locally spawn_local_node(Node)-> -- cgit v1.2.3