On Tue, May 6, 2014 at 2:48 PM, Alexander Burger <a...@software-lab.de> wrote:
> Hi Christophe,
Thanks (again…) for your quick reply.
>> Say I have a PicoLisp script named tests.l. Is there a way to have an
>> exit code for:
>> pil -bye tests.l
> Yes, though the above would never reach "tests.l", because 'bye' is
> called before it.
This explains some issues I got. Two birds in one shot for you.
> You could call (bye 7) at the end of "tests.l", or
> pil test.l -"bye 7"
I'll take the former since I want my tests to decide the exit code.
A drawback: if we (bye 1) in case of failure of the tests, post-mortem
inspection is now not possible. Anyway, I never needed inspection.
If ever, I'll take another think.
Message for Jon:
Now there is a good reason to add (bye) at the end of the EmuLisp tests!
Of course with some more work to handle the arg (I didn't even read the
docs for this one: http://www.software-lab.de/doc/refB.html#bye !!).