aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_server/src/test_server_ctrl.erl
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2015-01-22 01:03:25 +0100
committerPeter Andersson <[email protected]>2015-01-22 01:03:25 +0100
commitd5ae0df2f59f5f87922ceb76479a85e82c64c9b0 (patch)
treecbb42cdf3d4a680bda5c786ca1140b0f9f107efe /lib/test_server/src/test_server_ctrl.erl
parent2249ed70a95b238d37164a64abecfbde76f7dec2 (diff)
downloadotp-d5ae0df2f59f5f87922ceb76479a85e82c64c9b0.tar.gz
otp-d5ae0df2f59f5f87922ceb76479a85e82c64c9b0.tar.bz2
otp-d5ae0df2f59f5f87922ceb76479a85e82c64c9b0.zip
Add valid include path to epp in erl2html2 and fix crashing code
Diffstat (limited to 'lib/test_server/src/test_server_ctrl.erl')
-rw-r--r--lib/test_server/src/test_server_ctrl.erl9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/test_server/src/test_server_ctrl.erl b/lib/test_server/src/test_server_ctrl.erl
index af8921fe75..488f38d05d 100644
--- a/lib/test_server/src/test_server_ctrl.erl
+++ b/lib/test_server/src/test_server_ctrl.erl
@@ -1927,15 +1927,20 @@ html_possibly_convert(Src, SrcInfo, Dest) ->
{ok,DestInfo} when DestInfo#file_info.mtime >= SrcInfo#file_info.mtime ->
ok; % dest file up to date
_ ->
+ InclPath = case application:get_env(test_server, include) of
+ {ok,Incls} -> Incls;
+ _ -> []
+ end,
+
OutDir = get(test_server_log_dir_base),
case test_server_sup:framework_call(get_html_wrapper,
["Module "++Src,false,
OutDir,undefined,
encoding(Src)], "") of
Empty when (Empty == "") ; (element(2,Empty) == "") ->
- erl2html2:convert(Src, Dest);
+ erl2html2:convert(Src, Dest, InclPath);
{_,Header,_} ->
- erl2html2:convert(Src, Dest, Header)
+ erl2html2:convert(Src, Dest, InclPath, Header)
end
end.