summaryrefslogtreecommitdiff
path: root/test/TAR
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/TAR
parent8a5bbc171413896cda7c3d401727858ecaa80bf7 (diff)
downloadscons-0bb33189f751d06aa2fceea14d3b1a39f9bd8cea.tar.gz
Updating tests to use fixture wrapper.py.
Diffstat (limited to 'test/TAR')
-rw-r--r--test/TAR/TAR.py6
-rw-r--r--test/TAR/TARFLAGS.py6
2 files changed, 2 insertions, 10 deletions
diff --git a/test/TAR/TAR.py b/test/TAR/TAR.py
index 93c5ceac..8aa2747b 100644
--- a/test/TAR/TAR.py
+++ b/test/TAR/TAR.py
@@ -88,11 +88,7 @@ tar = test.detect('TAR', 'tar')
if tar:
- 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()
diff --git a/test/TAR/TARFLAGS.py b/test/TAR/TARFLAGS.py
index 96d61fe7..034539c2 100644
--- a/test/TAR/TARFLAGS.py
+++ b/test/TAR/TARFLAGS.py
@@ -94,11 +94,7 @@ tar = test.detect('TAR', 'tar')
if tar:
- 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()