diff --git a/cover.spec b/cover.spec index 8d2ef9d..aecbd75 100644 --- a/cover.spec +++ b/cover.spec @@ -1,3 +1,2 @@ {import, [".eunit/eunit.coverdata"]}. {export, ["logs/total.coverdata"]}. -{incl_dirs, ["ebin"]}. diff --git a/test/webserver.erl b/test/webserver.erl index 68a5fc8..f2bf3e6 100644 --- a/test/webserver.erl +++ b/test/webserver.erl @@ -87,7 +87,8 @@ server_loop(Module, Socket, Request, Headers, [H | T] = Responders) -> end. listen(ssl, Addr, Family) -> - Root = code:lib_dir(fusco, test), + KeyFile = code:where_is_file("key.pem"), + CertFile = code:where_is_file("crt.pem"), Opts = [ Family, {packet, http}, @@ -95,8 +96,8 @@ listen(ssl, Addr, Family) -> {active, false}, {ip, Addr}, {verify,0}, - {keyfile, filename:join(Root, "key.pem")}, - {certfile, filename:join(Root,"crt.pem")} + {keyfile, KeyFile}, + {certfile, CertFile} ], {ok, LS} = ssl:listen(0, Opts), LS;