summaryrefslogtreecommitdiffstats
path: root/test/DVIPS/PSCOM.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/DVIPS/PSCOM.py')
-rw-r--r--test/DVIPS/PSCOM.py16
1 files changed, 2 insertions, 14 deletions
diff --git a/test/DVIPS/PSCOM.py b/test/DVIPS/PSCOM.py
index fe4832b..1b90736 100644
--- a/test/DVIPS/PSCOM.py
+++ b/test/DVIPS/PSCOM.py
@@ -34,21 +34,11 @@ _python_ = TestSCons._python_
test = TestSCons.TestSCons()
-
-
-test.write('myps.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 != '/*ps*/\\n']:
- outfile.write(l)
-sys.exit(0)
-""")
+test.file_fixture('mycompile.py')
test.write('SConstruct', """
env = Environment(tools=['default', 'dvips'],
- PSCOM = r'%(_python_)s myps.py $TARGET $SOURCES')
+ PSCOM = r'%(_python_)s mycompile.py ps $TARGET $SOURCES')
env.PostScript(target = 'aaa', source = 'aaa.dvi')
""" % locals())
@@ -58,8 +48,6 @@ test.run()
test.must_match('aaa.ps', "aaa.dvi\n")
-
-
test.pass_test()
# Local Variables: