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

Re: [PATCH] t1300: use test helpers instead of shell primitives

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 4, 2026, 02:39 UTC
Message-ID
<xmqqfr8mp0cx.fsf@gitster.g>
In-Reply-To
<20260102062029.18210-1-pushkarkumarsingh1970@gmail.com>
pushkarkumarsingh1970@gmail.com writes:
Show 6 quoted lines
> From: Pushkar Singh <pushkarkumarsingh1970@gmail.com>
>
> Replace plain "test -f" checks with "test_path_is_file" and symbolic
> link checks with "test_path_is_symlink". The test framework helpers
> provide clearer diagnostics and better consistency across the test
> suite.

The "test" is often implemented as a built-in utility in a shell, but not necessarily so. Either way, it is not correct to call it "shell primitive", as unlike "if", "for", it is not.

Previous: Pushkar SinghNext: Pushkar Singh
Message 4 of 11 in “t1300: use test helpers instead of shell primitives”
  1. t1300: use test helpers instead of shell primitivespushkarkumarsingh1970@gmail.com, Jan 2, 2026
  2. Karthik NayakJan 2, 2026
  3. Pushkar SinghJan 2, 2026
  4. Junio C HamanoJan 4, 2026
  5. t1300: use test helpers instead of test builtinsPushkar Singh, Jan 4, 2026
  6. t1300: use test helpers instead of test builtinsAbraham Samuel Adekunle, Jan 4, 2026
  7. Pushkar SinghJan 4, 2026
  8. Karthik NayakJan 5, 2026
  9. Samuel AbrahamJan 5, 2026
  10. t1300: use test helpers instead of test builtinsPushkar Singh, Jan 4, 2026
  11. Karthik NayakJan 5, 2026

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.