git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

Previous: Stephan BeyerNext: Stephan Beyer
Message 8 of 9 in “[HACK] t/test-lib.sh HACK: Add -s/--show-hack to test suite.”
  1. Stephan BeyerJul 6, 2008
  2. Johannes SchindelinJul 6, 2008
  3. Stephan BeyerJul 7, 2008
  4. Johannes SchindelinJul 7, 2008
  5. Stephan BeyerJul 12, 2008
  6. Johannes SchindelinJul 13, 2008
  7. Stephan BeyerJul 13, 2008
  8. Johannes SchindelinJul 13, 2008
  9. Stephan BeyerJul 21, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.