Re: [HACK] t/test-lib.sh HACK: Add -s/--show-hack to test suite.
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jul 13, 2008, 13:21 UTC
- Message-ID
- <alpine.DEB.1.00.0807131518370.4816@eeepc-johanness>
- In-Reply-To
- <20080713110904.GG22323@leksak.fem-net>
Hi,
On Sun, 13 Jul 2008, Stephan Beyer wrote:
Show 5 quoted lines
> I want to see that the test failed at "! :" and I can't see that > on this output. > > But perhaps I just have to reconfigure something, so that it will show > me.
Ah, I implicitely assumed that you would also pass the "-i -v" flags to the test script, as my fingers are already trained to do so whenever I call a test script:
$ sh -x t4150-am.sh -i -v
You will have to scroll back a few lines to see exactly what failed, but you will see the exact commands (also of functions that were called), together with their return values (i.e. what the function output, and what was assigned to variables).
All that using the screen estate much more cautiously than your output.
I use "sh -x t* -i -v" all the time, Dscho