Volume XXII, number 280Wednesday, October 7, 2026Latest message 1 hour ago

The Git List

News and archive of git@vger.kernel.org, since April 2005

v14, 13 partsRe: [PATCH v14 12/13] fsmonitor: add tests for Linux

1 messages between Apr 15, 2026 and Apr 15, 2026, from Paul Tarjan.

Plain Markdown or JSON for tools and agents. Diffs are folded; open one to read it.

Paul TarjanApr 15, 2026, 13:26 UTC on lore
Jeff King <peff@peff.net> writes:
> Do we need to put it in curly braces to avoid interfering with the &&
> chain? Otherwise a failure of anything before the maybe_timeout will hit
> the "||".
Good point. Fixed in v15:
  stop_daemon_delete_repo () {
      r=$1 &&
      { maybe_timeout 30 git -C $r fsmonitor--daemon stop 2>/dev/null || :; } &&
      rm -rf $1
  }

Thanks for catching this. The broken &&-chain and 2>/dev/null were hiding the test_might_fail error.

Verified that test_might_fail rejects maybe_timeout (exit code 1, command never runs), while the { ... || :; } version actually executes the stop. No other instances of test_might_fail maybe_timeout in the repo.

Paul

Back to recent threads

Re: [PATCH v14 12/13] fsmonitor: add tests for Linux | The Git List