Pārlūkot izejas kodu

Added version check based on commit 74c68478aa

pull/579/head
CarlosEDP pirms 9 gadiem
vecāks
revīzija
9e4bf8a3ba
1 mainītis faili ar 7 papildinājumiem un 4 dzēšanām
  1. +7
    -4
      test/rebar_deps_SUITE.erl

+ 7
- 4
test/rebar_deps_SUITE.erl Parādīt failu

@ -50,11 +50,14 @@ init_per_testcase(http_proxy_settings, Config) ->
]),
rebar_test_utils:init_rebar_state(Config);
init_per_testcase(https_proxy_settings, Config) ->
{OTPVersion, _} = string:to_integer(erlang:system_info(otp_release)),
case OTPVersion of
Vsn when Vsn =< 15 ->
SupportsHttpsProxy = case erlang:system_info(otp_release) of
"R16"++_ -> true;
"R"++_ -> false;
_ -> true % 17 and up don't have a "R" in the version
end,
if not SupportsHttpsProxy ->
{skip, https_proxy_unsupported_before_R16};
_ ->
SupportsHttpsProxy ->
%% Create private rebar.config
Priv = ?config(priv_dir, Config),
GlobalDir = filename:join(Priv, "global"),

Notiek ielāde…
Atcelt
Saglabāt