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/RANLIB | |
parent | 8a5bbc171413896cda7c3d401727858ecaa80bf7 (diff) | |
download | scons-0bb33189f751d06aa2fceea14d3b1a39f9bd8cea.tar.gz |
Updating tests to use fixture wrapper.py.
Diffstat (limited to 'test/RANLIB')
-rw-r--r-- | test/RANLIB/RANLIB.py | 7 | ||||
-rw-r--r-- | test/RANLIB/RANLIBFLAGS.py | 7 |
2 files changed, 2 insertions, 12 deletions
diff --git a/test/RANLIB/RANLIB.py b/test/RANLIB/RANLIB.py index fbfe36cc..8d64b362 100644 --- a/test/RANLIB/RANLIB.py +++ b/test/RANLIB/RANLIB.py @@ -39,12 +39,7 @@ ranlib = test.detect('RANLIB', 'ranlib') if not ranlib: test.skip_test("Could not find 'ranlib', skipping test.\n") -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(LIBS = ['foo'], LIBPATH = ['.']) diff --git a/test/RANLIB/RANLIBFLAGS.py b/test/RANLIB/RANLIBFLAGS.py index 86e5283f..0de0cdcd 100644 --- a/test/RANLIB/RANLIBFLAGS.py +++ b/test/RANLIB/RANLIBFLAGS.py @@ -38,12 +38,7 @@ ranlib = test.detect('RANLIB', 'ranlib') if not ranlib: test.skip_test("Could not find 'ranlib', skipping test.\n") -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(LIBS = ['foo'], LIBPATH = ['.']) |