diff options
author | William Blevins <wblevins001@gmail.com> | 2016-09-24 04:29:36 -0400 |
---|---|---|
committer | William Blevins <wblevins001@gmail.com> | 2016-09-24 04:29:36 -0400 |
commit | 0bb33189f751d06aa2fceea14d3b1a39f9bd8cea (patch) | |
tree | c6fa3299dd54d4764e6e3d4225b7d32d0bc17395 /test/CXX | |
parent | 8a5bbc171413896cda7c3d401727858ecaa80bf7 (diff) | |
download | scons-0bb33189f751d06aa2fceea14d3b1a39f9bd8cea.tar.gz |
Updating tests to use fixture wrapper.py.
Diffstat (limited to 'test/CXX')
-rw-r--r-- | test/CXX/CXX.py | 8 | ||||
-rw-r--r-- | test/CXX/SHCXX.py | 7 |
2 files changed, 2 insertions, 13 deletions
diff --git a/test/CXX/CXX.py b/test/CXX/CXX.py index 79dbde45..c9dbf1c5 100644 --- a/test/CXX/CXX.py +++ b/test/CXX/CXX.py @@ -183,13 +183,7 @@ env.Program(target = 'test6', source = 'test6.C') -test.write("wrapper.py", -"""import os -import sys -if '--version' not in sys.argv and '-dumpversion' not in sys.argv: - open('%s', 'wb').write("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/CXX/SHCXX.py b/test/CXX/SHCXX.py index 9a788818..d6a314ec 100644 --- a/test/CXX/SHCXX.py +++ b/test/CXX/SHCXX.py @@ -32,12 +32,7 @@ _python_ = TestSCons._python_ test = TestSCons.TestSCons() -test.write("wrapper.py", -"""import os -import sys -open('%s', 'wb').write("wrapper.py\\n") -os.system(" ".join(sys.argv[1:])) -""" % test.workpath('wrapper.out').replace('\\', '\\\\')) +test.file_fixture('wrapper.py') test.write('SConstruct', """ foo = Environment() |