diff options
author | Amitai Schlair <schmonz-web-ikiwiki@schmonz.com> | 2014-10-01 15:06:24 -0400 |
---|---|---|
committer | Amitai Schlair <schmonz-web-ikiwiki@schmonz.com> | 2014-10-01 15:06:24 -0400 |
commit | afd9b2ff745b938f39e31bc510e410edfd324a7f (patch) | |
tree | 6225eda5f94e5ed080061f6fa35399c6c3c8f68d /t | |
parent | f99a9a8ffdfd4ab63d8d6b7463190fc9890cc3c9 (diff) | |
download | ikiwiki-afd9b2ff745b938f39e31bc510e410edfd324a7f.tar ikiwiki-afd9b2ff745b938f39e31bc510e410edfd324a7f.tar.gz |
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.
Diffstat (limited to 't')
-rwxr-xr-x | t/html.t | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |