diff options
Diffstat (limited to 'test/TEX/glossary.py')
-rw-r--r-- | test/TEX/glossary.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/TEX/glossary.py b/test/TEX/glossary.py index ef13ca1c3..d4ab579c2 100644 --- a/test/TEX/glossary.py +++ b/test/TEX/glossary.py @@ -31,7 +31,8 @@ be aware of the necessary created glossary files. Test configuration contributed by Robert Managan. """ -import os +import subprocess + import TestSCons test = TestSCons.TestSCons() @@ -41,8 +42,8 @@ latex = test.where_is('latex') if not latex: test.skip_test("Could not find 'latex'; skipping test(s).\n") -gloss = os.system('kpsewhich glossary.sty') -if not gloss==0: +cp = subprocess.run('kpsewhich glossary.sty', shell=True) +if cp.returncode: test.skip_test("glossary.sty not installed; skipping test(s).\n") test.write('SConstruct', """\ |