aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2018-02-26 17:57:47 +0100
committerLukas Larsson <[email protected]>2018-02-26 17:57:47 +0100
commit8bc23cd3da3c5c80a401bfea0738c007dbd21f85 (patch)
tree9e0e787be22646fe21726933dc440b70b8bb96b4 /lib/kernel/test
parentefd77366eadb9b3167fbdb0b673bd05ac8133022 (diff)
parent442c8ca0560ca0f1270c6cdea457e2de0333b580 (diff)
downloadotp-8bc23cd3da3c5c80a401bfea0738c007dbd21f85.tar.gz
otp-8bc23cd3da3c5c80a401bfea0738c007dbd21f85.tar.bz2
otp-8bc23cd3da3c5c80a401bfea0738c007dbd21f85.zip
Merge branch 'lukas/kernel/dist_SUITE_corefile_ignore' into maint
* lukas/kernel/dist_SUITE_corefile_ignore: kernel: Ignore cores in erl_distribution_SUITE
Diffstat (limited to 'lib/kernel/test')
-rw-r--r--lib/kernel/test/erl_distribution_SUITE.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/kernel/test/erl_distribution_SUITE.erl b/lib/kernel/test/erl_distribution_SUITE.erl
index bbfaa9d147..e34b4d77d2 100644
--- a/lib/kernel/test/erl_distribution_SUITE.erl
+++ b/lib/kernel/test/erl_distribution_SUITE.erl
@@ -95,7 +95,11 @@ init_per_group(_GroupName, Config) ->
end_per_group(_GroupName, Config) ->
Config.
-
+init_per_testcase(TC, Config) when TC == hostnames;
+ TC == nodenames ->
+ file:make_dir("hostnames_nodedir"),
+ file:write_file("hostnames_nodedir/ignore_core_files",""),
+ Config;
init_per_testcase(Func, Config) when is_atom(Func), is_list(Config) ->
Config.
@@ -251,7 +255,7 @@ test_node(Name, Illigal) ->
end,
net_kernel:monitor_nodes(true),
BinCommand = unicode:characters_to_binary(Command, utf8),
- Prt = open_port({spawn, BinCommand}, [stream]),
+ Prt = open_port({spawn, BinCommand}, [stream,{cd,"hostnames_nodedir"}]),
Node = list_to_atom(Name),
receive
{nodeup, Node} ->