aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/test/ftp_SUITE.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2017-03-31 17:31:10 +0200
committerIngela Anderton Andin <[email protected]>2017-04-03 11:12:02 +0200
commit8ebf838c8391c5b373f82acdfa3b60245cab2de7 (patch)
treef01d6da23a85901114f466309a0359993ca476fb /lib/inets/test/ftp_SUITE.erl
parentbe2b0e6e5b4786cb6f7d56cdcdc05339aa214406 (diff)
downloadotp-8ebf838c8391c5b373f82acdfa3b60245cab2de7.tar.gz
otp-8ebf838c8391c5b373f82acdfa3b60245cab2de7.tar.bz2
otp-8ebf838c8391c5b373f82acdfa3b60245cab2de7.zip
inets: Do not test https/ftps if crypto can not start
Diffstat (limited to 'lib/inets/test/ftp_SUITE.erl')
-rw-r--r--lib/inets/test/ftp_SUITE.erl19
1 files changed, 16 insertions, 3 deletions
diff --git a/lib/inets/test/ftp_SUITE.erl b/lib/inets/test/ftp_SUITE.erl
index e2dec0c42a..0f1fa96c67 100644
--- a/lib/inets/test/ftp_SUITE.erl
+++ b/lib/inets/test/ftp_SUITE.erl
@@ -191,9 +191,22 @@ end_per_suite(Config) ->
ok.
%%--------------------------------------------------------------------
-init_per_group(_Group, Config) -> Config.
-
-end_per_group(_Group, Config) -> Config.
+init_per_group(Group, Config) when Group == ftps_active,
+ Group == ftps_passive ->
+ catch crypto:stop(),
+ try crypto:start() of
+ ok ->
+ Config
+ catch
+ _:_ ->
+ {skip, "Crypto did not start"}
+ end;
+
+init_per_group(_Group, Config) ->
+ Config.
+
+end_per_group(_Group, Config) ->
+ Config.
%%--------------------------------------------------------------------
init_per_testcase(Case, Config0) ->