Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
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.
Diffstat (limited to 'tests/t0111-atom.sh')
| -rwxr-xr-x | tests/t0111-atom.sh | 7 |
1 file changed, 1 insertion, 6 deletions
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 "<entry>" 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 && |
