App env vars overwritten when config specified in ERL_FLAGS on second app eunit tested

Tuncer Ayaz tuncer.ayaz at gmail.com
Thu Feb 9 13:33:02 EST 2012


On Thu, Feb 9, 2012 at 7:10 PM, Scott Lystig Fritchie wrote:
> Tuncer Ayaz wrote:
>
> ta> On Thu, Feb 9, 2012 at 6:02 PM, David Smith wrote:
>>> This sounds like a bug to me, no?
>
> ta> Yes.
>
> Yes.

OK.

Should most probably be enough to special-case elements
like {config, [file:filename]} in rebar_eunit:reconstruct_app_env_vars/1.

In Jeremy's example above
$ ERL_FLAGS="-config test.config" ./rebar eunit
that translates to
{config,["test.config"]}
as part of the list returned by init:get_arguments().

Any volunteers to create a patch?



More information about the rebar mailing list