aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test/logger_test_lib.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2018-12-11 12:03:28 +0100
committerSiri Hansen <[email protected]>2019-01-16 09:59:24 +0100
commit2c63eda781ccf12c2f35a94bc07b1b1013232483 (patch)
treefb9c8e961cd6d6ff9ba0a499b8c659fd62c41631 /lib/kernel/test/logger_test_lib.erl
parent9fdd7a279d01ec91bfa9b55a5d86f86e6c860226 (diff)
downloadotp-2c63eda781ccf12c2f35a94bc07b1b1013232483.tar.gz
otp-2c63eda781ccf12c2f35a94bc07b1b1013232483.tar.bz2
otp-2c63eda781ccf12c2f35a94bc07b1b1013232483.zip
[logger] Add logger_stress_SUITE
Diffstat (limited to 'lib/kernel/test/logger_test_lib.erl')
-rw-r--r--lib/kernel/test/logger_test_lib.erl10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/kernel/test/logger_test_lib.erl b/lib/kernel/test/logger_test_lib.erl
index 81eb9ce5eb..be4bc427fb 100644
--- a/lib/kernel/test/logger_test_lib.erl
+++ b/lib/kernel/test/logger_test_lib.erl
@@ -28,11 +28,17 @@
post_end_per_testcase/5, post_end_per_suite/3]).
setup(Config,Vars) ->
+ Postfix = case proplists:get_value(postfix, Config) of
+ undefined -> "";
+ P -> ["_",P]
+ end,
FuncStr = lists:concat([proplists:get_value(suite, Config), "_",
- proplists:get_value(tc, Config)]),
+ proplists:get_value(tc, Config)|
+ Postfix]),
ConfigFileName = filename:join(proplists:get_value(priv_dir, Config), FuncStr),
file:write_file(ConfigFileName ++ ".config", io_lib:format("[{kernel, ~p}].",[Vars])),
- case test_server:start_node(proplists:get_value(tc, Config), slave,
+ Sname = lists:concat([proplists:get_value(tc,Config)|Postfix]),
+ case test_server:start_node(Sname, slave,
[{args, ["-pa ",filename:dirname(code:which(?MODULE)),
" -boot start_sasl -kernel start_timer true "
"-config ",ConfigFileName]}]) of