aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_run.erl
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2012-01-24 00:49:21 +0100
committerPeter Andersson <[email protected]>2012-03-13 14:58:15 +0100
commit83b3156388ee6773fddd82e5395bdfe2c8eedc19 (patch)
treebb01c2e13e5ec2da6df6b448bba74d67430cd5ad /lib/common_test/src/ct_run.erl
parent4aabf295e7b11d5ae03553aab1ba83a2657fa7aa (diff)
downloadotp-83b3156388ee6773fddd82e5395bdfe2c8eedc19.tar.gz
otp-83b3156388ee6773fddd82e5395bdfe2c8eedc19.tar.bz2
otp-83b3156388ee6773fddd82e5395bdfe2c8eedc19.zip
Add test suite for the unique_priv_dir feature
Diffstat (limited to 'lib/common_test/src/ct_run.erl')
-rw-r--r--lib/common_test/src/ct_run.erl12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/common_test/src/ct_run.erl b/lib/common_test/src/ct_run.erl
index 7798d369d2..19afb4b9f6 100644
--- a/lib/common_test/src/ct_run.erl
+++ b/lib/common_test/src/ct_run.erl
@@ -63,7 +63,7 @@
stylesheet,
multiply_timetraps = 1,
scale_timetraps = false,
- unique_priv_dir = false,
+ unique_priv_dir,
testspecs = [],
tests}).
@@ -182,7 +182,7 @@ script_start1(Parent, Args) ->
UniquePrivDir = get_start_opt(unique_priv_dir,
fun([UPD]) -> list_to_atom(UPD);
([]) -> auto
- end, false, Args),
+ end, Args),
EvHandlers = event_handler_args2opts(Args),
CTHooks = ct_hooks_args2opts(Args),
EnableBuiltinHooks = get_start_opt(enable_builtin_hooks,
@@ -802,7 +802,7 @@ run_test2(StartOpts) ->
ScaleTT = get_start_opt(scale_timetraps, value, false, StartOpts),
%% create unique priv dir names
- UniquePrivDir = get_start_opt(unique_priv_dir, value, false, StartOpts),
+ UniquePrivDir = get_start_opt(unique_priv_dir, value, StartOpts),
%% auto compile & include files
Include =
@@ -1871,8 +1871,8 @@ do_run_test(Tests, Skip, Opts) ->
test_server_ctrl:multiply_timetraps(Opts#opts.multiply_timetraps),
test_server_ctrl:scale_timetraps(Opts#opts.scale_timetraps),
- test_server_ctrl:unique_priv_dir(Opts#opts.unique_priv_dir),
-
+ test_server_ctrl:unique_priv_dir(choose_val(Opts#opts.unique_priv_dir,
+ false)),
ct_event:notify(#event{name=start_info,
node=node(),
data={NoOfTests,NoOfSuites,NoOfCases}}),
@@ -2453,7 +2453,7 @@ opts2args(EnvStartOpts) ->
({unique_priv_dir,false}) ->
[];
({unique_priv_dir,UPD}) when is_atom(UPD) ->
- [{unique_priv_dir,[UPD]}];
+ [{unique_priv_dir,[atom_to_list(UPD)]}];
({force_stop,true}) ->
[{force_stop,[]}];
({force_stop,false}) ->