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

[PATCH 0/4] Skip tests using 3-arg test_*

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Jul 27, 2010, 21:14 UTC
Message-ID
<1280265254-19642-1-git-send-email-avarab@gmail.com>

This is a cleanup of the test code that I had on my TODO. We should be using the 3-arg form of test_* instead of skip_all + test_done to skip tests.

This doesn't cover all the cases that were using skip_all=*. The remaining ones were too hairy to trivially convert, so I've left them alone for now.

This also includes a documentation patch to t/README describing how we'd like tests to be skipped.

Ævar Arnfjörð Bjarmason (4):
  tests: implicitly skip SYMLINKS tests using <prereq>
  t/t5800-remote-helpers.sh: Skip with prereq on python <2.4
  t/t7800-difftool.sh: Skip with prereq on no PERL
  t/README: Update "Skipping tests" to align with best practices
 t/README                          |   21 +++++++++++++--
 t/t2007-checkout-symlink.sh       |   14 +++-------
 t/t4004-diff-rename-symlink.sh    |   18 +++++--------
 t/t4011-diff-symlink.sh           |   18 ++++---------
 t/t4023-diff-rename-typechange.sh |   14 +++-------
 t/t4114-apply-typechange.sh       |   28 ++++++++-------------
 t/t4115-apply-symlink.sh          |   12 ++-------
 t/t4122-apply-symlink-inside.sh   |   12 ++-------
 t/t5522-pull-symlink.sh           |   14 +++-------
 t/t5800-remote-helpers.sh         |   24 ++++++++----------
 t/t6035-merge-dir-to-symlink.sh   |   20 +++++----------
 t/t7800-difftool.sh               |   49 ++++++++++++++++--------------------
 12 files changed, 100 insertions(+), 144 deletions(-)
Next: Ævar Arnfjörð Bjarmason
Message 1 of 8 in “Skip tests using 3-arg test_*”
  1. 0/4 Skip tests using 3-arg test_*Ævar Arnfjörð Bjarmason, Jul 27, 2010
  2. 1/4 tests: implicitly skip SYMLINKS tests using <prereq>Ævar Arnfjörð Bjarmason, Jul 27, 2010
  3. Jonathan NiederJul 27, 2010
  4. 1/4 t: implicitly skip SYMLINKS tests using <prereq>Ævar Arnfjörð Bjarmason, Jul 27, 2010
  5. Sverre RabbelierJul 27, 2010
  6. 2/4 t/t5800-remote-helpers.sh: Skip with prereq on python <2.4Ævar Arnfjörð Bjarmason, Jul 27, 2010
  7. 3/4 t/t7800-difftool.sh: Skip with prereq on no PERLÆvar Arnfjörð Bjarmason, Jul 27, 2010
  8. 4/4 t/README: Update "Skipping tests" to align with best practicesÆvar Arnfjörð Bjarmason, Jul 27, 2010

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.