[PATCH 0/2] Update tests to use semantic functions
From: "Mark C. Chu-Carroll via B4 Relay" <devnull+markchucarroll.fastmail.com@kernel.org>
Date: 2026-09-04 20:35:59
Also in:
b4-sent
Update tests to use semantic functions like "test_path_is_file"
instead of the older "test -f". All of the tests that make simple
usages are updated; tests that do more complicated things like
starting subshells are left unchanged.
Signed-off-by: Mark C. Chu-Carroll <redacted>
---
Mark C. Chu-Carroll (2):
Update shell tests to use semantic functions
Second batch of shell test migrations.
t/perf/p5302-pack-index.sh | 2 +-
t/t0007-git-var.sh | 2 +-
t/t0031-lockfile-pid.sh | 2 +-
t/t0081-find-pack.sh | 2 +-
t/t0200-gettext-basic.sh | 2 +-
t/t1007-hash-object.sh | 6 +++---
t/t1700-split-index.sh | 2 +-
t/t2005-checkout-index-symlinks.sh | 2 +-
t/t2030-unresolve-info.sh | 8 ++++----
t/t2201-add-update-typechange.sh | 2 +-
t/t3300-funny-names.sh | 2 +-
t/t3306-notes-prune.sh | 2 +-
t/t3311-notes-merge-fanout.sh | 2 +-
t/t3434-rebase-i18n.sh | 2 +-
t/t3902-quoted.sh | 2 +-
t/t4013-diff-various.sh | 2 +-
t/t4014-format-patch.sh | 6 +++---
t/t4016-diff-quote.sh | 2 +-
t/t4032-diff-inter-hunk-context.sh | 4 ++--
t/t4102-apply-rename.sh | 2 +-
t/t4131-apply-fake-ancestor.sh | 2 +-
t/t4132-apply-removal.sh | 4 ++--
t/t4252-am-options.sh | 2 +-
t/t5000-tar-tree.sh | 2 +-
t/t5100-mailinfo.sh | 6 +++---
t/t5300-pack-object.sh | 10 +++++-----
t/t5301-sliding-window.sh | 4 ++--
t/t5302-pack-index.sh | 8 ++++----
t/t5334-incremental-multi-pack-index.sh | 2 +-
t/t5402-post-merge-hook.sh | 2 +-
t/t5500-fetch-pack.sh | 2 +-
t/t5502-quickfetch.sh | 2 +-
t/t5510-fetch.sh | 8 ++++----
t/t5515-fetch-merge-logic.sh | 4 ++--
t/t5516-fetch-push.sh | 2 +-
t/t5526-fetch-submodules.sh | 8 ++++----
t/t5534-push-signed.sh | 6 +++---
t/t5550-http-fetch-dumb.sh | 2 +-
t/t5601-clone.sh | 16 ++++++++--------
t/t5604-clone-reference.sh | 2 +-
t/t5702-protocol-v2.sh | 4 ++--
t/t5710-promisor-remote-capability.sh | 2 +-
t/t6030-bisect-porcelain.sh | 2 +-
t/t6500-gc.sh | 2 +-
t/t7004-tag.sh | 4 ++--
t/t7011-skip-worktree-reading.sh | 2 +-
t/t7012-skip-worktree-writing.sh | 2 +-
t/t7102-reset.sh | 2 +-
t/t7104-reset-hard.sh | 2 +-
t/t7113-post-index-change-hook.sh | 12 ++++++------
t/t7201-co.sh | 6 +++---
t/t7400-submodule-basic.sh | 10 +++++-----
t/t7407-submodule-foreach.sh | 6 +++---
t/t7409-submodule-detached-work-tree.sh | 2 +-
t/t7412-submodule-absorbgitdirs.sh | 8 ++++----
t/t7450-bad-git-dotfiles.sh | 6 +++---
t/t7602-merge-octopus-many.sh | 2 +-
t/t7606-merge-custom.sh | 8 ++++----
t/t7610-mergetool.sh | 6 +++---
t/t9400-git-cvsserver-server.sh | 6 +++---
t/t9804-git-p4-label.sh | 8 ++++----
61 files changed, 126 insertions(+), 126 deletions(-)
---
base-commit: 2c3adbb2c475981e340c79fdc5e7f4f9b5d9054e
change-id: 20260904-file-tests-use-shell-functions-e0d6c545d56c