diff options
author | William Deegan <bill@baddogconsulting.com> | 2016-11-30 00:42:01 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2016-11-30 00:42:01 (GMT) |
commit | caebca9a677c846c3d38ca43a065944875aa18ed (patch) | |
tree | 5aa6f55072600b0a3f424bf887fa3042fd15806e /test/TEX | |
parent | 055dc8f39e8b0d175a7acdd5977bb35b152ad170 (diff) | |
parent | 810413128c22359f06c7bd0f7de4840fe5657c31 (diff) | |
download | SCons-caebca9a677c846c3d38ca43a065944875aa18ed.zip SCons-caebca9a677c846c3d38ca43a065944875aa18ed.tar.gz SCons-caebca9a677c846c3d38ca43a065944875aa18ed.tar.bz2 |
Merged in ricklupton/scons (pull request #382)
Skip import.sty test when Latex package missing
Diffstat (limited to 'test/TEX')
-rw-r--r-- | test/TEX/recursive_scanner_dependencies_import.py | 5 |
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 d9d2625..b31dfbe 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') |