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

Re: [PATCH] test-lib: write test results to test-results/<basename>-<pid>

From
SZEDER Gábor <szeder@ira.uka.de>
Date
Mar 14, 2009, 12:16 UTC
Message-ID
<20090314121617.GJ6808@neumann>
In-Reply-To
<alpine.DEB.1.00.0903141250450.10279@pacific.mpi-cbg.de>
Hi,
On Sat, Mar 14, 2009 at 12:53:06PM +0100, Johannes Schindelin wrote:
Show 14 quoted lines
> Hi,
> 
> On Fri, 13 Mar 2009, SZEDER Gábor wrote:
> 
> > diff --git a/t/Makefile b/t/Makefile
> > index 0d65ced..2e6e205 100644
> > --- a/t/Makefile
> > +++ b/t/Makefile
> > @@ -14,14 +14,11 @@ SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
> >  T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)
> >  TSVN = $(wildcard t91[0-9][0-9]-*.sh)
> >  
> > -all: pre-clean $(T) aggregate-results clean
> > +all: $(T) aggregate-results clean

Well, this part is wrong, or at least not up-to-date. I just digged up an ancient branch in my tree and sent out the diff, without realizing that there were some conflicting changes since then.

Show 21 quoted lines
> >  
> >  $(T):
> >  	@echo "*** $@ ***"; GIT_CONFIG=.git/config '$(SHELL_PATH_SQ)' $@ $(GIT_TEST_OPTS)
> >  
> > -pre-clean:
> > -	$(RM) -r test-results
> > -
> >  clean:
> >  	$(RM) -r 'trash directory' test-results
> >  
> > @@ -33,5 +30,5 @@ full-svn-test:
> >  	$(MAKE) $(TSVN) GIT_SVN_NO_OPTIMIZE_COMMITS=1 LC_ALL=C
> >  	$(MAKE) $(TSVN) GIT_SVN_NO_OPTIMIZE_COMMITS=0 LC_ALL=en_US.UTF-8
> >  
> > -.PHONY: pre-clean $(T) aggregate-results clean
> > +.PHONY: $(T) aggregate-results clean
> >  .NOTPARALLEL:
> 
> This is wrong.  If you have failing tests, or if you interrupt the tests, 
> it will never clean the test results, and after Hannes' patch you _will_ 
> have stale files lying around all the time.

If you have failing tests, or if you interrupt the tests, then you will have stale files lying around _anyway_: not only test results are left there, but also trash directories. To remove the trash directories, you'll need to run 'make clean' (in t/), but that will remove the test results, too, so there is no difference. But even if you don't run 'make clean' before running the test suite again, test results cruft from the previous run doesn't matter, because they will be overwritten.

Best, Gábor

Previous: Johannes SchindelinNext: Johannes Schindelin
Message 6 of 14 in “test-lib: write test results to test-results/<basename>-<pid>”
  1. test-lib: write test results to test-results/<basename>-<pid>Johannes Schindelin, Mar 13, 2009
  2. Johannes SchindelinMar 13, 2009
  3. SZEDER GáborMar 13, 2009
  4. SZEDER GáborMar 13, 2009
  5. Johannes SchindelinMar 14, 2009
  6. SZEDER GáborMar 14, 2009
  7. Johannes SchindelinMar 14, 2009
  8. SZEDER GáborMar 14, 2009
  9. Sverre RabbelierMar 14, 2009
  10. SZEDER GáborMar 14, 2009
  11. Johannes SchindelinMar 16, 2009
  12. SZEDER GáborMar 16, 2009
  13. Junio C HamanoMar 13, 2009
  14. Junio C HamanoMar 13, 2009

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.