diff options
author | William Deegan <bill@baddogconsulting.com> | 2016-11-30 00:42:01 +0000 |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2016-11-30 00:42:01 +0000 |
commit | 17ce5a7d49e25ca815ff4e4f126e16d2c2025902 (patch) | |
tree | 5aa6f55072600b0a3f424bf887fa3042fd15806e /test/TEX | |
parent | 3236acde36a6b73ec6fe155ef8f878c29f0f3406 (diff) | |
parent | 89822deb3042aa251403f457c96095092df2bb54 (diff) | |
download | scons-17ce5a7d49e25ca815ff4e4f126e16d2c2025902.tar.gz |
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 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') |