Commit e903b0af authored by Yusei Tahara's avatar Yusei Tahara

Skip xhtml tests when tidy is not installed.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18640 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 99690842
...@@ -195,7 +195,11 @@ def addTestMethodDynamically(): ...@@ -195,7 +195,11 @@ def addTestMethodDynamically():
method_name = 'test%s%s' % (portal_type, view_name) method_name = 'test%s%s' % (portal_type, view_name)
setattr(TestXHTML, method_name, method) setattr(TestXHTML, method_name, method)
addTestMethodDynamically() # tidy may not be installed in livecd. Then we will skip xhtml validation tests.
if not os.path.exists('/usr/bin/tidy'):
print '*** tidy is not installed at /usr/bin/tidy ***'
else:
addTestMethodDynamically()
def test_suite(): def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
......
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