diff options
author | Ingela Anderton Andin <[email protected]> | 2015-06-22 16:47:42 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2015-06-22 16:47:42 +0200 |
commit | 566cbee917638f596c5d46bd0aff331a66f5c8d2 (patch) | |
tree | 31f918d230fd468e7935d1f2481510616805f631 /lib/ssl/test/ssl_crl_SUITE.erl | |
parent | 43787faa5933483128f06d775bc41fef36df4567 (diff) | |
download | otp-566cbee917638f596c5d46bd0aff331a66f5c8d2.tar.gz otp-566cbee917638f596c5d46bd0aff331a66f5c8d2.tar.bz2 otp-566cbee917638f596c5d46bd0aff331a66f5c8d2.zip |
ssl: Make init functions fail if make_certs:all fails
Diffstat (limited to 'lib/ssl/test/ssl_crl_SUITE.erl')
-rw-r--r-- | lib/ssl/test/ssl_crl_SUITE.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ssl/test/ssl_crl_SUITE.erl b/lib/ssl/test/ssl_crl_SUITE.erl index a94ff14408..107f2a5fb5 100644 --- a/lib/ssl/test/ssl_crl_SUITE.erl +++ b/lib/ssl/test/ssl_crl_SUITE.erl @@ -99,8 +99,8 @@ init_per_group(Group, Config0) -> DataDir = ?config(data_dir, Config0), CertDir = filename:join(?config(priv_dir, Config0), Group), {CertOpts, Config} = init_certs(CertDir, Group, Config0), - Result = make_certs:all(DataDir, CertDir, CertOpts), - [{make_cert_result, Result}, {cert_dir, CertDir}, {idp_crl, false} | Config] + {ok, _} = make_certs:all(DataDir, CertDir, CertOpts), + [{cert_dir, CertDir}, {idp_crl, false} | Config] end. end_per_group(_GroupName, Config) -> @@ -126,9 +126,9 @@ init_per_testcase(Case, Config0) -> DataDir = ?config(data_dir, Config), CertDir = filename:join(?config(priv_dir, Config0), idp_crl), {CertOpts, Config} = init_certs(CertDir, idp_crl, Config), - Result = make_certs:all(DataDir, CertDir, CertOpts), + {ok, _} = make_certs:all(DataDir, CertDir, CertOpts), ct:timetrap({seconds, 6}), - [{make_cert_result, Result}, {cert_dir, CertDir} | Config]; + [{cert_dir, CertDir} | Config]; false -> end_per_testcase(Case, Config0), ssl:start(), |