From: Amitai Schlair Date: Wed, 1 Oct 2014 19:06:24 +0000 (-0400) Subject: Search $PATH for "validate", since the test does. X-Git-Tag: debian/3.20141016~88 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/afd9b2ff745b938f39e31bc510e410edfd324a7f?hp=f99a9a8ffdfd4ab63d8d6b7463190fc9890cc3c9 Search $PATH for "validate", since the test does. "validate" is a very generic command name, and it validates against an old standard, so the value of this test is questionable. --- diff --git a/t/html.t b/t/html.t index 3faf44154..84c561fa8 100755 --- a/t/html.t +++ b/t/html.t @@ -7,8 +7,8 @@ my @pages; BEGIN { @pages=qw(index features news plugins/map security); - if (! -x "/usr/bin/validate") { - plan skip_all => "/usr/bin/validate html validator not present"; + if (system("command -v validate >/dev/null") != 0) { + plan skip_all => "html validator not present"; } else { plan(tests => int @pages + 2);