Commit 3e84b2ab authored by Julien Muchembled's avatar Julien Muchembled

Allow to specify where testXHTML should find the w3c markup validator

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42882 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bbbd51ee
......@@ -629,9 +629,9 @@ validator = None
# tidy or w3c may not be installed in livecd. Then we will skip xhtml validation tests.
# create the validator object
if validator_to_use == 'w3c':
validator_paths = ['/usr/share/w3c-markup-validator/cgi-bin/check',
'/usr/lib/cgi-bin/check']
for validator_path in validator_paths:
default = '/usr/share/w3c-markup-validator/cgi-bin:/usr/lib/cgi-bin'
for path in os.environ.get('CGI_PATH', default).split(os.pathsep):
validator_path = os.path.join(path, 'check')
if os.path.exists(validator_path):
validator = W3Validator(validator_path, show_warnings)
break
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment