diff options
author | Mats Wichmann <mats@linux.com> | 2020-02-07 18:52:53 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2020-02-07 23:39:37 (GMT) |
commit | e8e8d71df80b9b690ef9f2d5b83378f23677e30f (patch) | |
tree | 975bfaf04b6b8d63d86fcb0827f4b8e8d226af73 /test/CC | |
parent | ef011014b343288919292560fa24e108874c059a (diff) | |
download | SCons-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.py | 4 |
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) |