summaryrefslogtreecommitdiff
path: root/test/CC
diff options
context:
space:
mode:
authorWilliam Blevins <wblevins001@gmail.com>2016-09-24 04:29:36 -0400
committerWilliam Blevins <wblevins001@gmail.com>2016-09-24 04:29:36 -0400
commit0bb33189f751d06aa2fceea14d3b1a39f9bd8cea (patch)
treec6fa3299dd54d4764e6e3d4225b7d32d0bc17395 /test/CC
parent8a5bbc171413896cda7c3d401727858ecaa80bf7 (diff)
downloadscons-0bb33189f751d06aa2fceea14d3b1a39f9bd8cea.tar.gz
Updating tests to use fixture wrapper.py.
Diffstat (limited to 'test/CC')
-rw-r--r--test/CC/CC.py8
-rw-r--r--test/CC/SHCC.py7
2 files changed, 2 insertions, 13 deletions
diff --git a/test/CC/CC.py b/test/CC/CC.py
index 7478cbe2..f6c2954e 100644
--- a/test/CC/CC.py
+++ b/test/CC/CC.py
@@ -139,13 +139,7 @@ env.Program(target = 'test2', source = 'test2.C')
test.run(arguments = '.', stderr = None)
test.must_match('test2' + _exe, "This is a .C file.\n")
-test.write("wrapper.py",
-"""import os
-import sys
-if '--version' not in sys.argv and '-dumpversion' not in sys.argv:
- open('%s', 'wb').write(b"wrapper.py\\n")
-os.system(" ".join(sys.argv[1:]))
-""" % test.workpath('wrapper.out').replace('\\', '\\\\'))
+test.file_fixture('wrapper.py')
test.write('SConstruct', """
foo = Environment()
diff --git a/test/CC/SHCC.py b/test/CC/SHCC.py
index 5f121fc7..beda8e4e 100644
--- a/test/CC/SHCC.py
+++ b/test/CC/SHCC.py
@@ -32,12 +32,7 @@ _python_ = TestSCons._python_
test = TestSCons.TestSCons()
-test.write("wrapper.py",
-"""import os
-import sys
-open('%s', 'wb').write(b"wrapper.py\\n")
-os.system(" ".join(sys.argv[1:]))
-""" % test.workpath('wrapper.out').replace('\\', '\\\\'))
+test.file_fixture('wrapper.py')
test.write('SConstruct', """
foo = Environment()