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

Re: [PATCH v2] perf: fix when running with TEST_OUTPUT_DIRECTORY

From
Jeff King <peff@peff.net>
Date
Jul 19, 2021, 10:53 UTC
Message-ID
<YPVZqn0Lm6m6GC2Z@coredump.intra.peff.net>
In-Reply-To
<YPVZZl1FI0D8kK6C@ncase>
On Mon, Jul 19, 2021 at 12:52:22PM +0200, Patrick Steinhardt wrote:
Show 23 quoted lines
> On Mon, Jul 19, 2021 at 04:25:29AM -0400, Jeff King wrote:
> > On Fri, Jun 18, 2021 at 03:56:08PM +0200, Patrick Steinhardt wrote:
> [snip]
> > > diff --git a/t/perf/perf-lib.sh b/t/perf/perf-lib.sh
> > > index 601d9f67dd..f5ed092ee5 100644
> > > --- a/t/perf/perf-lib.sh
> > > +++ b/t/perf/perf-lib.sh
> > > @@ -45,7 +45,7 @@ export TEST_DIRECTORY TRASH_DIRECTORY GIT_BUILD_DIR GIT_TEST_CMP
> > >  MODERN_GIT=$GIT_BUILD_DIR/bin-wrappers/git
> > >  export MODERN_GIT
> > >  
> > > -perf_results_dir=$TEST_OUTPUT_DIRECTORY/test-results
> > > +perf_results_dir=$TEST_RESULTS_DIR
> > 
> > This line puzzled me a bit. Isn't $TEST_RESULTS_DIR already defined to
> > be $TEST_OUTPUT_DIRECTORY/test-results? If the change here is just for
> > clarity / readability that's OK by me. I just want to make sure I'm not
> > missing something.
> 
> Yes it is, and IIRC the change was just for clarity as you assume. The
> logic to derive the results directory was essentially duplicated across
> perf-lib.sh and test-lib.sh without much of a reason, given that we
> always set TEST_RESULTS_DIR in test-lib.sh.
OK, thanks. Then your patch looks great to me. :)
-Peff
Previous: Patrick Steinhardt
Message 8 of 8 in “perf: fix when running with TEST_OUTPUT_DIRECTORY”
  1. perf: fix when running with TEST_OUTPUT_DIRECTORYPatrick Steinhardt, Jun 16, 2021
  2. Ævar Arnfjörð BjarmasonJun 16, 2021
  3. Patrick SteinhardtJun 16, 2021
  4. perf: fix when running with TEST_OUTPUT_DIRECTORYPatrick Steinhardt, Jun 18, 2021
  5. Junio C HamanoJun 29, 2021
  6. Jeff KingJul 19, 2021
  7. Patrick SteinhardtJul 19, 2021
  8. Jeff KingJul 19, 2021

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.