summaryrefslogtreecommitdiff
path: root/test/TEX
diff options
context:
space:
mode:
authorRick Lupton <r.lupton@gmail.com>2016-11-29 08:02:08 +0000
committerRick Lupton <r.lupton@gmail.com>2016-11-29 08:02:08 +0000
commit89822deb3042aa251403f457c96095092df2bb54 (patch)
treeca6a1e628b16bcdc7939331d824b2f102333310d /test/TEX
parent2106942105005e61485ea4b6b488f0c5e5d38436 (diff)
downloadscons-89822deb3042aa251403f457c96095092df2bb54.tar.gz
Skip import.sty test when Latex package missing
Diffstat (limited to 'test/TEX')
-rw-r--r--test/TEX/recursive_scanner_dependencies_import.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/TEX/recursive_scanner_dependencies_import.py b/test/TEX/recursive_scanner_dependencies_import.py
index d9d26250..b31dfbea 100644
--- a/test/TEX/recursive_scanner_dependencies_import.py
+++ b/test/TEX/recursive_scanner_dependencies_import.py
@@ -34,6 +34,7 @@ dependencies are found only by the scanner.
"""
+import os
import TestSCons
test = TestSCons.TestSCons()
@@ -43,6 +44,10 @@ pdflatex = test.where_is('pdflatex')
if not pdflatex:
test.skip_test("Could not find pdflatex; skipping test(s).\n")
+latex_import = os.system('kpsewhich import.sty')
+if latex_import != 0:
+ test.skip_test("import.sty not installed; skipping test(s).\n")
+
test.subdir('subdir')
test.subdir('subdir/subdir2')