From d263c4ed701785693e3ffd819ef5e4f07fadb8ff Mon Sep 17 00:00:00 2001 From: Raimo Niskanen Date: Fri, 29 Jul 2016 15:53:52 +0200 Subject: Fix inets_sup_SUITE for local tests --- lib/inets/test/inets_sup_SUITE.erl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/inets/test') diff --git a/lib/inets/test/inets_sup_SUITE.erl b/lib/inets/test/inets_sup_SUITE.erl index cf7aa78ff3..a88414d6b1 100644 --- a/lib/inets/test/inets_sup_SUITE.erl +++ b/lib/inets/test/inets_sup_SUITE.erl @@ -52,9 +52,9 @@ end_per_suite(_) -> inets:stop(), ok. -init_per_testcase(httpd_config, Config) -> +init_per_testcase(httpd_config = TC, Config) -> PrivDir = proplists:get_value(priv_dir, Config), - Dir = filename:join(PrivDir, "root"), + Dir = filename:join(PrivDir, TC), ok = file:make_dir(Dir), FallbackConfig = [{port, 0}, @@ -75,9 +75,9 @@ init_per_testcase(httpd_config, Config) -> exit({failed_starting_inets, Reason}) end; -init_per_testcase(httpd_subtree, Config) -> +init_per_testcase(httpd_subtree = TC, Config) -> PrivDir = proplists:get_value(priv_dir, Config), - Dir = filename:join(PrivDir, "root"), + Dir = filename:join(PrivDir, TC), ok = file:make_dir(Dir), SimpleConfig = [{port, 0}, @@ -98,9 +98,9 @@ init_per_testcase(httpd_subtree, Config) -> exit({failed_starting_inets, Reason}) end; -init_per_testcase(httpd_subtree_profile, Config) -> +init_per_testcase(httpd_subtree_profile = TC, Config) -> PrivDir = proplists:get_value(priv_dir, Config), - Dir = filename:join(PrivDir, "root"), + Dir = filename:join(PrivDir, TC), ok = file:make_dir(Dir), SimpleConfig = [{port, 0}, -- cgit v1.2.3