瀏覽代碼

Fully clean up after test utils for proxy

pull/1398/head
Fred Hebert 8 年之前
父節點
當前提交
2c155ead23
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. +5
    -4
      test/rebar_utils_SUITE.erl

+ 5
- 4
test/rebar_utils_SUITE.erl 查看文件

@ -303,9 +303,10 @@ proxy_auth(_Config, ProxyEnvKey) ->
rebar_utils:get_proxy_auth()),
%% restore original proxy specification if any
restore_proxy_env(ProxyEnvKey, OldProxySpec).
restore_proxy_env(ProxyEnvKey, OldProxySpec),
application:unset_env(rebar, proxy_auth).
restore_proxy_env(_, false) ->
ok;
restore_proxy_env(ProxyEnvKey, false) ->
os:putenv(ProxyEnvKey, "");
restore_proxy_env(ProxyEnvKey, ProxySpec) ->
os:putenv(ProxyEnvKey, ProxySpec).
os:putenv(ProxyEnvKey, ProxySpec).

Loading…
取消
儲存