summaryrefslogtreecommitdiffstats
path: root/test/TEX/glossary.py
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2020-02-07 18:52:53 (GMT)
committerMats Wichmann <mats@linux.com>2020-02-07 23:39:37 (GMT)
commite8e8d71df80b9b690ef9f2d5b83378f23677e30f (patch)
tree975bfaf04b6b8d63d86fcb0827f4b8e8d226af73 /test/TEX/glossary.py
parentef011014b343288919292560fa24e108874c059a (diff)
downloadSCons-e8e8d71df80b9b690ef9f2d5b83378f23677e30f.zip
SCons-e8e8d71df80b9b690ef9f2d5b83378f23677e30f.tar.gz
SCons-e8e8d71df80b9b690ef9f2d5b83378f23677e30f.tar.bz2
Stop calling os.system in tests.
This converts the remaining tests that called os.system themselves to use subprocess instead. Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'test/TEX/glossary.py')
-rw-r--r--test/TEX/glossary.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/TEX/glossary.py b/test/TEX/glossary.py
index ef13ca1..d4ab579 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', """\