aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_util.erl
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2010-07-01 15:46:13 +0200
committerPeter Andersson <[email protected]>2010-07-06 02:44:27 +0200
commitafbd6fa341f89211697a3c3f59f888b8247aa7f4 (patch)
treecb9ec5ea21a5b146be67fd5b9a2d26cb8e730b49 /lib/common_test/src/ct_util.erl
parent79851b599df5caf5e2101d834a843e3837c6a6ae (diff)
downloadotp-afbd6fa341f89211697a3c3f59f888b8247aa7f4.tar.gz
otp-afbd6fa341f89211697a3c3f59f888b8247aa7f4.tar.bz2
otp-afbd6fa341f89211697a3c3f59f888b8247aa7f4.zip
Add textured backgound to html log files
The overview html log files now have a textured background. This default new look can be switched off with the 'basic_html' option.
Diffstat (limited to 'lib/common_test/src/ct_util.erl')
-rw-r--r--lib/common_test/src/ct_util.erl9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/common_test/src/ct_util.erl b/lib/common_test/src/ct_util.erl
index eddaf4c8b9..86e1482eb0 100644
--- a/lib/common_test/src/ct_util.erl
+++ b/lib/common_test/src/ct_util.erl
@@ -45,7 +45,7 @@
-export([get_mode/0, create_table/3, read_opts/0]).
--export([set_cwd/1, reset_cwd/0]).
+-export([set_cwd/1, reset_cwd/0, get_ct_root/0]).
-export([parse_table/1]).
@@ -619,6 +619,13 @@ get_testdir(Dir, Suite) when is_list(Suite) ->
get_testdir(Dir, _) ->
get_testdir(Dir, all).
+%%%-----------------------------------------------------------------
+%%% @spec
+%%%
+%%% @doc
+get_ct_root() ->
+ [_Ebin|CTPath] = lists:reverse(filename:split(filename:dirname(code:which(?MODULE)))),
+ lists:reverse(CTPath).
%%%-----------------------------------------------------------------
%%% @spec