[erlang-questions] slave:start/3 time out when EUnit started with ERL_FLAGS
George Catalin Serbanut
cgsmcmlxxv@REDACTED
Wed Sep 7 14:49:18 CEST 2011
It may be that ERL_<A/Z/->FLAGS can be the problem. Try "erl -sname foobar"
directly instead of using ERL_FLAGS.
2011/9/7 Motiejus Jakštys <desired.mta@REDACTED>
> On Wed, Sep 07, 2011 at 12:21:32PM +0200, George Catalin Serbanut wrote:
> > ERL_FLAGS is equivalent with ERL_ZFLAGS which appends at the end of the
> > command line. Now, it depends on how "command line" is interpreted
> (Eshell
> > can be considered a continuation of the "erl" command line).
>
> Thanks for response. Can this be a catch?
>
> > Try ERL_AFLAGS. If you still get the problem, then it may be a
> > misbehavior of the interpretation of those FLAGS.
>
> Does not work as well.
>
> Let me rephrase:
> running
> $ ERL_FLAGS="-sname eunit" erl -pa . -s eunit test foo
> according the documentation of ERL_FLAGS, should be equivalent to
> $ erl -pa . -s eunit test foo -sname eunit
>
> However, these two cases behave differently.
>
> Regarding Ulf's response, if "-s eunit test" blocked until completion,
> the second case would not work, and at least, -sname would not be
> parsed? However, we see the node name.
>
> Do I misunderstand what ERL_FLAGS does? As far as I see, it should alter
> the command line before any module execution. As we see from printed
> node name, the command line is parsed.
>
> Motiejus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110907/64492093/attachment.htm>
More information about the erlang-questions
mailing list