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

Re: [PATCH] test: simplify counts aggregation

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Mar 8, 2023, 10:04 UTC
Message-ID
<CAMP44s34bvRP1n3L57sK450ZfLUeVQKVtXDXrE75qM46xaCgcw@mail.gmail.com>
In-Reply-To
<20230308092621.M321240@dcvr>
On Wed, Mar 8, 2023 at 3:26 AM Eric Wong <e@80x24.org> wrote:
Show 13 quoted lines
>
> > On Wed, Mar 08 2023, Felipe Contreras wrote:
> > > +++ b/t/Makefile
> > > +   '$(SHELL_PATH_SQ)' ./aggregate-results.sh '$(TEST_RESULTS_DIRECTORY_SQ)/t*-*.counts'
>
> > > +++ b/t/aggregate-results.sh
> > >
> > > -while read file
> > > +for file in $1
>
> Reading aggregate-results.sh alone looks wrong; but your patch is
> correct overall because of how it's invoked from the Makefile.
> I think that's too subtle...

Yeap, it's the first time I read it, I don't actually use it, and it's broken for my use case:

    testnum=$(expr "$file" : 'test-results/\(t[0-9]*\)-')

That doesn't work when TEST_OUTPUT_DIRECTORY is set (which I always have); should be ".*test-results".

I don't actually care how many thousands of tests have been run, the only functionality that might be useful to me is the number of fixed tests (namely that it's higher than 0). Maybe a summary-results.sh might make more sense.

Cheers.
-- 
Felipe Contreras
Previous: Eric WongNext: Felipe Contreras
Message 4 of 7 in “test: simplify counts aggregation”
  1. test: simplify counts aggregationFelipe Contreras, Mar 8, 2023
  2. Ævar Arnfjörð BjarmasonMar 8, 2023
  3. Eric WongMar 8, 2023
  4. Felipe ContrerasMar 8, 2023
  5. Felipe ContrerasMar 8, 2023
  6. Ævar Arnfjörð BjarmasonMar 8, 2023
  7. Felipe ContrerasMar 8, 2023

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.