From 8651c571878221090abc2a332c0e707d3507aba2 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 14:51:46 -0700 Subject: Leave the snapshot and feed tool checks to test-lib A lazy prerequisite is checked only when a test asks for it, and test-lib names the missing one on every skipped test, so the skip notes go too. test-lib already defines UNZIP and the unzip it checks. The test that unpacks a tag's tar.gz with gzip now asks for GZIP like every other one that does. --- tests/t0111-atom.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'tests/t0111-atom.sh') diff --git a/tests/t0111-atom.sh b/tests/t0111-atom.sh index 48448ef..ccc8a2f 100755 --- a/tests/t0111-atom.sh +++ b/tests/t0111-atom.sh @@ -46,12 +46,7 @@ test_expect_success 'max-atom-items overrides the ceiling' ' test $(grep -c "" feed) -eq 3 ' -if command -v xmllint >/dev/null 2>&1 -then - test_set_prereq XMLLINT -else - say 'Skipping well-formedness check: xmllint not found' -fi +test_lazy_prereq XMLLINT 'command -v xmllint' test_expect_success XMLLINT 'the feed is well-formed xml' ' cgit_url "foo/atom" >tmp && -- cgit