summaryrefslogtreecommitdiff
path: root/test/Docbook/basic
diff options
context:
space:
mode:
authorDirk Baechle <dl9obn@darc.de>2013-11-03 19:17:58 +0100
committerDirk Baechle <dl9obn@darc.de>2013-11-03 19:17:58 +0100
commit8e5dddb4931ceba8da3d459a8e964a73a31e58db (patch)
tree6c4aaaf1971124a8862d4dcf4d0346b5c70ee5df /test/Docbook/basic
parente1766ee40c7c01fb3d49b51c55105e4366d2ba5c (diff)
downloadscons-8e5dddb4931ceba8da3d459a8e964a73a31e58db.tar.gz
- corrected LC_ALL setting for RPM packaging
- now skipping several Docbook tests, when required stylesheets aren't installed
Diffstat (limited to 'test/Docbook/basic')
-rw-r--r--test/Docbook/basic/slideshtml/slideshtml.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Docbook/basic/slideshtml/slideshtml.py b/test/Docbook/basic/slideshtml/slideshtml.py
index d4636d4b..37c2be0c 100644
--- a/test/Docbook/basic/slideshtml/slideshtml.py
+++ b/test/Docbook/basic/slideshtml/slideshtml.py
@@ -26,10 +26,17 @@
Test the Slides HTML builder.
"""
+import os
+import sys
import TestSCons
test = TestSCons.TestSCons()
+if not (sys.platform.startswith('linux') and
+ os.path.isdir('/usr/share/xml/docbook/stylesheet/docbook-xsl/slides') and
+ os.path.isdir('/usr/share/xml/docbook/custom/slides/3.3.1')):
+ test.skip_test('Wrong OS or no "slides" stylesheets installed, skipping test.\n')
+
try:
import libxml2
except: