summaryrefslogtreecommitdiffstats
path: root/test/RANLIB
diff options
context:
space:
mode:
authorWilliam Blevins <wblevins001@gmail.com>2016-09-24 08:29:36 (GMT)
committerWilliam Blevins <wblevins001@gmail.com>2016-09-24 08:29:36 (GMT)
commitc4c2ba91c671527828fbc6ffb79421d5e487a398 (patch)
treec6fa3299dd54d4764e6e3d4225b7d32d0bc17395 /test/RANLIB
parent9e87609dfac0fd6a87d2cdc0a9e4e8b5c0a6a99a (diff)
downloadSCons-c4c2ba91c671527828fbc6ffb79421d5e487a398.zip
SCons-c4c2ba91c671527828fbc6ffb79421d5e487a398.tar.gz
SCons-c4c2ba91c671527828fbc6ffb79421d5e487a398.tar.bz2
Updating tests to use fixture wrapper.py.
Diffstat (limited to 'test/RANLIB')
-rw-r--r--test/RANLIB/RANLIB.py7
-rw-r--r--test/RANLIB/RANLIBFLAGS.py7
2 files changed, 2 insertions, 12 deletions
diff --git a/test/RANLIB/RANLIB.py b/test/RANLIB/RANLIB.py
index fbfe36c..8d64b36 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 86e5283..0de0cdc 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 = ['.'])