Skip to content

Skip tests using 3-arg test_*

Ævar Arnfjörð Bjarmason git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tests: implicitly skip SYMLINKS tests using <prereq>t/t2007-checkout-symlink.sh t/t4004-diff-rename-symlink.sh t/t4011-diff-symlink.sh +6 more+49 -1011 reply
1/4t: implicitly skip SYMLINKS tests using <prereq>t/t2007-checkout-symlink.sh t/t4004-diff-rename-symlink.sh t/t4011-diff-symlink.sh +6 more+49 -1011 reply
2/4t/t5800-remote-helpers.sh: Skip with prereq on python <2.4t/t5800-remote-helpers.sh+11 -130 replies
3/4t/t7800-difftool.sh: Skip with prereq on no PERLt/t7800-difftool.sh+22 -270 replies
4/4t/README: Update "Skipping tests" to align with best practicest/README+18 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)