diff options
author | Raimo Niskanen <[email protected]> | 2018-04-27 11:13:40 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2018-04-27 11:13:40 +0200 |
commit | 5803f0ad5be257b451588e8da83d1295eabea85e (patch) | |
tree | 88965106f8a44d85299d2c72af46b918bc310283 /lib/ssl/test/ssl_dist_SUITE.erl | |
parent | 5586959ed008c09141689f1e8865476150e48519 (diff) | |
download | otp-5803f0ad5be257b451588e8da83d1295eabea85e.tar.gz otp-5803f0ad5be257b451588e8da83d1295eabea85e.tar.bz2 otp-5803f0ad5be257b451588e8da83d1295eabea85e.zip |
Fix distro CRL test cases short vs long names
Diffstat (limited to 'lib/ssl/test/ssl_dist_SUITE.erl')
-rw-r--r-- | lib/ssl/test/ssl_dist_SUITE.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/ssl/test/ssl_dist_SUITE.erl b/lib/ssl/test/ssl_dist_SUITE.erl index c822a52d1f..003e1fc448 100644 --- a/lib/ssl/test/ssl_dist_SUITE.erl +++ b/lib/ssl/test/ssl_dist_SUITE.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2007-2017. All Rights Reserved. +%% Copyright Ericsson AB 2007-2018. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ -include("ssl_dist_test_lib.hrl"). %% Note: This directive should only be used in test suites. --compile(export_all). +-compile([export_all, nowarn_export_all]). -define(DEFAULT_TIMETRAP_SECS, 240). @@ -724,7 +724,8 @@ setup_certs(Config) -> ok = file:make_dir(NodeDir), ok = file:make_dir(RGenDir), make_randfile(RGenDir), - {ok, _} = make_certs:all(RGenDir, NodeDir), + [Hostname|_] = string:split(net_adm:localhost(), ".", all), + {ok, _} = make_certs:all(RGenDir, NodeDir, [{hostname,Hostname}]), SDir = filename:join([NodeDir, "server"]), SC = filename:join([SDir, "cert.pem"]), SK = filename:join([SDir, "key.pem"]), |