Make sure the httpd started exits with the test.

Now green when run in sequence:

Test Results:
pb_cipher_suites-bitcask: pass
pb_security-bitcask     : pass
---------------------------------------------
0 Tests Failed
2 Tests Passed
That's 100.0% for those keeping score
This commit is contained in:
Sean Cribbs 2014-12-29 13:58:26 -06:00
parent 1addf5207f
commit 41b60d0328
2 changed files with 10 additions and 4 deletions

View File

@ -28,10 +28,13 @@ confirm() ->
make_certs:revoke(CertDir, "rootCA", "revokedCA"),
%% start a HTTP server to serve the CRLs
inets:start(httpd, [{port, 8000}, {server_name, "localhost"},
%%
%% NB: we use the 'stand_alone' option to link the server to the
%% test process, so it exits when the test process exits.
{ok, _HTTPPid} = inets:start(httpd, [{port, 8000}, {server_name, "localhost"},
{server_root, "/tmp"},
{document_root, CertDir},
{modules, [mod_get]}]),
{modules, [mod_get]}], stand_alone),
lager:info("Deploy some nodes"),
Conf = [{riak_core, [

View File

@ -41,10 +41,13 @@ confirm() ->
make_certs:gencrl(CertDir, "site1.basho.com"),
%% start a HTTP server to serve the CRLs
inets:start(httpd, [{port, 8000}, {server_name, "localhost"},
%%
%% NB: we use the 'stand_alone' option to link the server to the
%% test process, so it exits when the test process exits.
{ok, _HTTPPid} = inets:start(httpd, [{port, 8000}, {server_name, "localhost"},
{server_root, "/tmp"},
{document_root, CertDir},
{modules, [mod_get]}]),
{modules, [mod_get]}], stand_alone),
lager:info("Deploy some nodes"),
PrivDir = rt:priv_dir(),