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

Tuncer Ayaz tuncer.ayaz at gmail.com
Wed Feb 15 15:22:47 EST 2012


On Fri, Feb 10, 2012 at 9:26 PM, Jeremy Raymond <jeraymond at gmail.com> wrote:
> I've submitted a pull request with a patch. Please have a look.
>
> https://github.com/basho/rebar/pull/182

Thanks, merged.

> On Thu, Feb 9, 2012 at 8:42 PM, Jeremy Raymond <jeraymond at gmail.com> wrote:
>> Sure I'll take a crack at it.
>>
>> --
>> Jeremy
>>
>> On 2012-02-09, at 1:33 PM, Tuncer Ayaz wrote:
>>
>>> 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