瀏覽代碼

Added version check based on commit 74c68478aa

pull/579/head
CarlosEDP 9 年之前
父節點
當前提交
9e4bf8a3ba
共有 1 個檔案被更改,包括 7 行新增4 行删除
  1. +7
    -4
      test/rebar_deps_SUITE.erl

+ 7
- 4
test/rebar_deps_SUITE.erl 查看文件

@ -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"),

Loading…
取消
儲存