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

Re: [PATCH 3/3] t7900: make macOS-specific test work on Windows

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Nov 28, 2020, 05:55 UTC
Message-ID
<CAPig+cRbga9ksi0JedU=U1zbLMY26xLtB7sBDJ5M5=TT1HsX1A@mail.gmail.com>
In-Reply-To
<87o8jikfh7.fsf@evledraar.gmail.com>

On Fri, Nov 27, 2020 at 10:05 AM Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:

Show 12 quoted lines
> On Fri, Nov 27 2020, Eric Sunshine wrote:
> > +test_expect_success 'start and stop macOS maintenance' '
> > +     uid=$(test-tool getuid) &&
>
> This seems equally portable, and means your 2/3 isn't needed, no?
>     +   uid=FAKE_UID &&
>     +   echo \$* | perl -pe "s[(?<= gui/)-?[0-9]+][$uid]g" >>args
> I.e. the context here is that the test is already hardcoding an
> assumption about "gui/%d" (per code in gc.c). It seems more robust & to
> the point of the test to not care about the specific UID number that
> comes back, since we're really testing whether we invoke our own code,
> not platform getuid() sanity.
Good idea. That's a reasonable viewpoint to take, and makes the series simpler.
Previous: Ævar Arnfjörð Bjarmason
Message 6 of 6 in “make macOS `git maintenance` test work on Windows”
  1. 0/3 make macOS `git maintenance` test work on WindowsEric Sunshine, Nov 27, 2020
  2. 1/3 t7900: fix test failures when invoked individually via --runEric Sunshine, Nov 27, 2020
  3. 2/3 test-tool: add `getuid` subcommandEric Sunshine, Nov 27, 2020
  4. 3/3 t7900: make macOS-specific test work on WindowsEric Sunshine, Nov 27, 2020
  5. Ævar Arnfjörð BjarmasonNov 27, 2020
  6. Eric SunshineNov 28, 2020

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.