diff options
author | Peter Andersson <[email protected]> | 2012-03-15 16:37:55 +0100 |
---|---|---|
committer | Peter Andersson <[email protected]> | 2012-03-15 16:38:09 +0100 |
commit | 1748c9e027594c011a08feb16c7f94fe62ead2a4 (patch) | |
tree | ac6e0365435de0a23ee1e89a37f084457a1bc6d9 /lib/common_test/src/ct.erl | |
parent | 7484721f847e95380e66456b4a55e08481b570d8 (diff) | |
parent | ccdee0c96757252c63f4e4d2f3d21c628e0c4025 (diff) | |
download | otp-1748c9e027594c011a08feb16c7f94fe62ead2a4.tar.gz otp-1748c9e027594c011a08feb16c7f94fe62ead2a4.tar.bz2 otp-1748c9e027594c011a08feb16c7f94fe62ead2a4.zip |
Merge remote branch 'origin/peppe/common_test/otp-9634_9659' into maint
* origin/peppe/common_test/otp-9634_9659:
Change the option name 'unique_priv_dir' to 'create_priv_dir'
Add test suite for the unique_priv_dir feature
Make it possible to use unique priv_dir names
Create entry for every repeated test in index.html
OTP-9634
OTP-9659
Diffstat (limited to 'lib/common_test/src/ct.erl')
-rw-r--r-- | lib/common_test/src/ct.erl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/common_test/src/ct.erl b/lib/common_test/src/ct.erl index 0a77527b2f..63a8adbc63 100644 --- a/lib/common_test/src/ct.erl +++ b/lib/common_test/src/ct.erl @@ -64,7 +64,7 @@ print/1, print/2, print/3, pal/1, pal/2, pal/3, capture_start/0, capture_stop/0, capture_get/0, capture_get/1, - fail/1, fail/2, comment/1, comment/2, + fail/1, fail/2, comment/1, comment/2, make_priv_dir/0, testcases/2, userdata/2, userdata/3, timetrap/1, get_timetrap_info/0, sleep/1]). @@ -673,6 +673,15 @@ send_html_comment(Comment) -> ct_util:set_testdata({comment,Html}), test_server:comment(Html). +%%%----------------------------------------------------------------- +%%% @spec make_priv_dir() -> ok | {error,Reason} +%%% Reason = term() +%%% @doc If the test has been started with the create_priv_dir +%%% option set to manual_per_tc, in order for the test case to use +%%% the private directory, it must first create it by calling +%%% this function. +make_priv_dir() -> + test_server:make_priv_dir(). %%%----------------------------------------------------------------- %%% @spec get_target_name(Handle) -> {ok,TargetName} | {error,Reason} |