aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/distribution_SUITE.erl
diff options
context:
space:
mode:
authorRichard Carlsson <[email protected]>2018-04-17 14:11:34 +0200
committerRichard Carlsson <[email protected]>2018-05-04 10:22:36 +0200
commit3d44429177a7dbdac5662433cfc55f5b5113a959 (patch)
tree0c3ccaf26a91360fab5a9ff48c91b8a91e229992 /erts/emulator/test/distribution_SUITE.erl
parenta2f9d28ac231f7209815b743d9a20d266c51a187 (diff)
downloadotp-3d44429177a7dbdac5662433cfc55f5b5113a959.tar.gz
otp-3d44429177a7dbdac5662433cfc55f5b5113a959.tar.bz2
otp-3d44429177a7dbdac5662433cfc55f5b5113a959.zip
Add ct:get_progname/0
This replaces all uses of lib:progname/0 in tests.
Diffstat (limited to 'erts/emulator/test/distribution_SUITE.erl')
-rw-r--r--erts/emulator/test/distribution_SUITE.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/test/distribution_SUITE.erl b/erts/emulator/test/distribution_SUITE.erl
index e40d346e10..0e383ee879 100644
--- a/erts/emulator/test/distribution_SUITE.erl
+++ b/erts/emulator/test/distribution_SUITE.erl
@@ -797,7 +797,7 @@ show_term(Term) ->
%% Tests behaviour after net_kernel:stop (OTP-2586).
stop_dist(Config) when is_list(Config) ->
- Str = os:cmd(atom_to_list(lib:progname())
+ Str = os:cmd(ct:get_progname()
++ " -noshell -pa "
++ proplists:get_value(data_dir, Config)
++ " -s run"),
@@ -974,9 +974,9 @@ dist_auto_connect_start(Name, Value) when is_list(Name), is_atom(Value) ->
ModuleDir = filename:dirname(code:which(?MODULE)),
ValueStr = atom_to_list(Value),
Cookie = atom_to_list(erlang:get_cookie()),
- Cmd = lists:concat(
+ Cmd = lists:append(
[%"xterm -e ",
- atom_to_list(lib:progname()),
+ ct:get_progname(),
% " -noinput ",
" -detached ",
long_or_short(), " ", Name,