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, 12:07 UTC
Message-ID
<CAMP44s2dZmrt8SDFU+vwV7AX1BJNS3jR-nu0WZJsaEKLgTtKDg@mail.gmail.com>
In-Reply-To
<230308.86ttyvxzjz.gmgdl@evledraar.gmail.com>
On Wed, Mar 8, 2023 at 5:17 AM Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
>
> On Wed, Mar 08 2023, Felipe Contreras wrote:
Show 12 quoted lines
> > Or just:
> >
> >     for file in "${TEST_OUTPUT_DIRECTORY-.}"/test-results/t*-*.counts
> >
> > And don't pass anything.
>
> Yeah, I think that would work, but at least on an ad-hoc basis I've
> sometimes saved away the "test-results" directory
> (e.g. "test-results.prev").
>
> I think it would be useful if the script part of our tooling was happy
> to accept any name for such a directory, and then examined its contents.
That's not a problem, just pass the directory as an optional argument.
    default_dir="${TEST_OUTPUT_DIRECTORY-.}/test-results/"
    for file in "${1-$default_dir}"/t*-*.counts
> But I don't feel strongly about it, and I don't use aggregate-results.sh
> in particular (I always use "prove").
Yeah, me neither (I also use prove).
-- 
Felipe Contreras
Previous: Ævar Arnfjörð Bjarmason
Message 7 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.