[erlang-questions] slave:start/3 time out when EUnit started with ERL_FLAGS

Motiejus Jakštys <>
Wed Sep 7 12:34:27 CEST 2011


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



More information about the erlang-questions mailing list