Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug when reread_config running on OTP 17 #2093

Merged
merged 1 commit into from
May 28, 2019
Merged

Conversation

anderswei
Copy link
Contributor

There was a bug in latest rebar3 when running rebar3 ct on OTP 17.5. The ct process would be terminated automatically without any error printed.
After digging it turned out the configuration file, either defined in rebar.config or passed by parameter --sys_config is not loaded properly when running rebar3 ct.

From the release here: https://github.com/erlang/otp/releases/tag/OTP-17.0 we can see {persistent, boolean()} is supported from otp 17, so when reread_config, rebar3 should call application:set_env(App, Key, Val, [{persistent, true}]) for OTP releases > 17.

After the modification, locally rebar3 ct now works properly.

@ferd
Copy link
Collaborator

ferd commented May 28, 2019

Sounds good. OTP-17 won't officially be supported on the next release anymore (since OTP-22 is out), but I'll merge this anyway since it's correct and does not hurt to keep.

@ferd ferd merged commit 311ba9e into erlang:master May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants