aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/test/ssl_crl_SUITE.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2017-06-27 16:27:08 +0200
committerIngela Anderton Andin <[email protected]>2017-06-29 10:58:46 +0200
commit65419ab0fe7e3f412b5bf635a62872f301a5d06a (patch)
tree67a9295ca6fecf5bedafe9f8a581c4b156b15e2d /lib/ssl/test/ssl_crl_SUITE.erl
parent4dbee101c93ed9498411a116e57919c7e17b077d (diff)
downloadotp-65419ab0fe7e3f412b5bf635a62872f301a5d06a.tar.gz
otp-65419ab0fe7e3f412b5bf635a62872f301a5d06a.tar.bz2
otp-65419ab0fe7e3f412b5bf635a62872f301a5d06a.zip
ssl: Skip test if OpenSSL has problems generating CRL
Diffstat (limited to 'lib/ssl/test/ssl_crl_SUITE.erl')
-rw-r--r--lib/ssl/test/ssl_crl_SUITE.erl12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/ssl/test/ssl_crl_SUITE.erl b/lib/ssl/test/ssl_crl_SUITE.erl
index e293d183f7..668c76e38d 100644
--- a/lib/ssl/test/ssl_crl_SUITE.erl
+++ b/lib/ssl/test/ssl_crl_SUITE.erl
@@ -155,9 +155,15 @@ init_per_testcase(Case, Config0) ->
DataDir = proplists:get_value(data_dir, Config),
CertDir = filename:join(proplists:get_value(priv_dir, Config0), idp_crl),
{CertOpts, Config} = init_certs(CertDir, idp_crl, Config),
- {ok, _} = make_certs:all(DataDir, CertDir, CertOpts),
- ct:timetrap({seconds, 6}),
- [{cert_dir, CertDir} | Config];
+ case make_certs:all(DataDir, CertDir, CertOpts) of
+ {ok, _} ->
+ ct:timetrap({seconds, 6}),
+ [{cert_dir, CertDir} | Config];
+ _ ->
+ end_per_testcase(Case, Config0),
+ ssl_test_lib:clean_start(),
+ {skip, "Unable to create IDP crls"}
+ end;
false ->
end_per_testcase(Case, Config0),
ssl_test_lib:clean_start(),