aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/test/ct_master_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2012-10-09 14:55:13 +0200
committerBjörn Gustavsson <[email protected]>2012-10-31 14:27:16 +0100
commit42b20176c1ed7f819ec1b436bc6d1f8987269e48 (patch)
tree0d7242e439a96049d7225e74e372def3b9dbe4ea /lib/common_test/test/ct_master_SUITE.erl
parent65590d374d83af7f7d64c19e7f911da3cd2e16cc (diff)
downloadotp-42b20176c1ed7f819ec1b436bc6d1f8987269e48.tar.gz
otp-42b20176c1ed7f819ec1b436bc6d1f8987269e48.tar.bz2
otp-42b20176c1ed7f819ec1b436bc6d1f8987269e48.zip
Add support for passing environment variables in master mode
Prototype-by: Magnus Lidén <[email protected]>
Diffstat (limited to 'lib/common_test/test/ct_master_SUITE.erl')
-rw-r--r--lib/common_test/test/ct_master_SUITE.erl12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/common_test/test/ct_master_SUITE.erl b/lib/common_test/test/ct_master_SUITE.erl
index d46ba68af6..56a343a96f 100644
--- a/lib/common_test/test/ct_master_SUITE.erl
+++ b/lib/common_test/test/ct_master_SUITE.erl
@@ -147,13 +147,15 @@ make_spec(DataDir, FileName, NodeNames, Suites, Config) ->
CM = [{config,master,filename:join(DataDir,"master/config.txt")}],
+ Env = [{"THIS_MUST_BE_SET","yes"},
+ {"SO_MUST_THIS","value"}],
NS = lists:map(
fun(NodeName) ->
{init,NodeName,[
{node_start,[{startup_functions,[]},
- {monitor_master,true}]},
- {eval,{erlang,nodes,[]}}
- ]
+ {monitor_master,true},
+ {env,Env}]},
+ {eval,{erlang,nodes,[]}}]
}
end,
NodeNames),
@@ -223,4 +225,6 @@ events_to_check(_) ->
{?eh,tc_start,{master_SUITE,second_testcase}},
{?eh,tc_done,{master_SUITE,second_testcase,ok}},
{?eh,tc_start,{master_SUITE,third_testcase}},
- {?eh,tc_done,{master_SUITE,third_testcase,ok}}].
+ {?eh,tc_done,{master_SUITE,third_testcase,ok}},
+ {?eh,tc_start,{master_SUITE,env_vars}},
+ {?eh,tc_done,{master_SUITE,env_vars,ok}}].