summaryrefslogtreecommitdiffstats
path: root/test/TAR/TARCOMSTR.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/TAR/TARCOMSTR.py')
-rw-r--r--test/TAR/TARCOMSTR.py16
1 files changed, 2 insertions, 14 deletions
diff --git a/test/TAR/TARCOMSTR.py b/test/TAR/TARCOMSTR.py
index 339f0ca..817dc59 100644
--- a/test/TAR/TARCOMSTR.py
+++ b/test/TAR/TARCOMSTR.py
@@ -35,21 +35,11 @@ _python_ = TestSCons._python_
test = TestSCons.TestSCons()
-
-
-test.write('mytar.py', """
-import sys
-outfile = open(sys.argv[1], 'wb')
-for f in sys.argv[2:]:
- infile = open(f, 'rb')
- for l in [l for l in infile.readlines() if l != '/*tar*/\\n']:
- outfile.write(l)
-sys.exit(0)
-""")
+test.file_fixture('mycompile.py')
test.write('SConstruct', """
env = Environment(tools=['tar'],
- TARCOM = r'%(_python_)s mytar.py $TARGET $SOURCES',
+ TARCOM = r'%(_python_)s mycompile.py tar $TARGET $SOURCES',
TARCOMSTR = 'Taring $TARGET from $SOURCE')
env.Tar('aaa.tar', 'aaa.in')
""" % locals())
@@ -62,8 +52,6 @@ Taring aaa.tar from aaa.in
test.must_match('aaa.tar', "aaa.in\n")
-
-
test.pass_test()
# Local Variables: