diff options
author | Lukas Larsson <lukas@erlang.org> | 2021-02-19 16:37:40 +0100 |
---|---|---|
committer | Lukas Larsson <lukas@erlang.org> | 2021-02-19 16:39:25 +0100 |
commit | 6afe80581e58176249a7e4eaa8865b6bd5e442e8 (patch) | |
tree | 38266c6346d8a3004442038b37b252a01d8a6912 /lib | |
parent | 2d28dcb88e7418221bcecff96d1a8122e2bc5b5c (diff) | |
download | erlang-6afe80581e58176249a7e4eaa8865b6bd5e442e8.tar.gz |
reltool: Ignore ERL_LIBS in test cases
If ERL_LIBS is set when the testrun is started
the reltool_server_SUITE fails to run. So we clear
it before we start that suite and restore it
afterwards in case in contains something we need.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/reltool/test/reltool_test_lib.erl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/reltool/test/reltool_test_lib.erl b/lib/reltool/test/reltool_test_lib.erl index 88e5244b8b..4860f7ad66 100644 --- a/lib/reltool/test/reltool_test_lib.erl +++ b/lib/reltool/test/reltool_test_lib.erl @@ -27,10 +27,17 @@ init_per_suite(Config) when is_list(Config)-> global:register_name(reltool_global_logger, group_leader()), - incr_timetrap(Config, ?timeout). + ErlLibs = os:getenv("ERL_LIBS"), + os:unsetenv("ERL_LIBS"), + [{erl_libs,ErlLibs}|incr_timetrap(Config, ?timeout)]. end_per_suite(Config) when is_list(Config)-> global:unregister_name(reltool_global_logger), + case proplists:get_value(erl_libs, Config) of + false -> ok; + ErlLibs -> + os:putenv("ERL_LIBS", ErlLibs) + end, ok. incr_timetrap(Config, Times) -> |