diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-09-18 11:50:21 (GMT) |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-09-18 11:55:07 (GMT) |
commit | 9ee781d095f023b7049e59a17b0561288f18889e (patch) | |
tree | 07bc0a36839b5b3e31b816bb1ce113eb12bc6ec0 /test/DVIPDF | |
parent | 326b09c255a22c26b1ab80c2b17ca122e6279c07 (diff) | |
download | SCons-9ee781d095f023b7049e59a17b0561288f18889e.zip SCons-9ee781d095f023b7049e59a17b0561288f18889e.tar.gz SCons-9ee781d095f023b7049e59a17b0561288f18889e.tar.bz2 |
test: Pass a correct flag to DVIPDFFLAGS test
Pass '-R2' instead of '-N' as the tested flag to DVIPDFFLAGS test.
Apparently '-N' alone is not a valid flag (as of ghostscript-gpl 9.53.1)
and it causes the test to fail:
cd . && dvipdf -N foo.dvi foo.pdf
-N must be between 2 and 4194303
scons: building terminated because of errors.
It is not even mentioned in the manual page (though looking
at the script, it is passed to gs). Use '-R2' instead as an arbitrary
documented flag.
Diffstat (limited to 'test/DVIPDF')
-rw-r--r-- | test/DVIPDF/DVIPDFFLAGS.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/DVIPDF/DVIPDFFLAGS.py b/test/DVIPDF/DVIPDFFLAGS.py index 9ecb736..9900cf7 100644 --- a/test/DVIPDF/DVIPDFFLAGS.py +++ b/test/DVIPDF/DVIPDFFLAGS.py @@ -122,7 +122,7 @@ subprocess.run(cmd, shell=True) test.write('SConstruct', """ import os ENV = {'PATH' : os.environ['PATH']} -foo = Environment(DVIPDFFLAGS = '-N', ENV = ENV) +foo = Environment(DVIPDFFLAGS = '-R2', ENV = ENV) dvipdf = foo.Dictionary('DVIPDF') bar = Environment(DVIPDF = r'%(_python_)s wrapper.py ' + dvipdf, ENV = ENV) foo.PDF(target = 'foo.pdf', |