diff options
Diffstat (limited to 'test/TEX/bibtex-latex-rerun.py')
-rw-r--r-- | test/TEX/bibtex-latex-rerun.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/test/TEX/bibtex-latex-rerun.py b/test/TEX/bibtex-latex-rerun.py index 353d9a4..a0ba5c2 100644 --- a/test/TEX/bibtex-latex-rerun.py +++ b/test/TEX/bibtex-latex-rerun.py @@ -95,10 +95,16 @@ test.run() pdf_output_3 = test.read('bibtest.pdf') -# If the PDF file is now different than the second run, then something -# else odd has happened, so fail. (Note that this test will be incorrect -# if the tool does something like insert a timestamp in the PDF file.) -test.fail_test(pdf_output_2 != pdf_output_3) + + +# If the PDF file is now different than the second run, modulo the +# creation timestamp and the ID, then something else odd has happened, +# so fail. + +pdf_output_2 = test.normalize_pdf(pdf_output_2) +pdf_output_3 = test.normalize_pdf(pdf_output_3) + +assert pdf_output_2 == pdf_output_3, test.diff_substr(pdf_output_2, pdf_output_3, 80, 80) |