summaryrefslogtreecommitdiffstats
path: root/test/CC
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/CC
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/CC')
-rw-r--r--test/CC/CCVERSION-fixture/versioned.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CC/CCVERSION-fixture/versioned.py b/test/CC/CCVERSION-fixture/versioned.py
index d6c7ae8..33dc574 100644
--- a/test/CC/CCVERSION-fixture/versioned.py
+++ b/test/CC/CCVERSION-fixture/versioned.py
@@ -1,4 +1,4 @@
-import os
+import subprocess
import sys
if '-dumpversion' in sys.argv:
print('3.9.9')
@@ -9,4 +9,4 @@ if '--version' in sys.argv:
if sys.argv[1] not in [ '2.9.9', '3.9.9' ]:
print('wrong version', sys.argv[1], 'when wrapping', sys.argv[2])
sys.exit(1)
-os.system(" ".join(sys.argv[2:]))
+subprocess.run(" ".join(sys.argv[2:]), shell=True)