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 | |
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.
-rwxr-xr-x | CHANGES.txt | 3 | ||||
-rw-r--r-- | test/DVIPDF/DVIPDFFLAGS.py | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 6293590..677d739 100755 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -8,6 +8,9 @@ NOTE: The 4.0.0 Release of SCons dropped Python 2.7 Support RELEASE VERSION/DATE TO BE FILLED IN LATER + From Michał Górny: + - Fix dvipdf test failure due to passing incorrect flag to dvipdf. + From Joseph Brill: - Internal MSVC and test updates: Rework the msvc installed versions cache so that it is not exposed externally and update external references accordingly. 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', |