https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: app-text/pdftk-3.3.2-r1 fails tests. Discovered on: amd64 (internal ref: ci)
CC'ing also the author of the commit (d88c28b7816a02cbbac3d37393c53b885245cc60)
Created attachment 804085 [details] build.log build log and emerge --info
Created attachment 804112 [details] Build log with tests passed Cannot reproduce. Here, it simply continues ( einfo "Running second test" ). Attaching my build log. In the ebuild the tests are grouped in two test runs because some tests, all in the first group, seem not to produce any "failed" or "OK" output.
Created attachment 804115 [details] Build log with tests passed Attaching the correct log.
FWIW, I can reproduce this is an clean container (using ebuildtester). The test also continue to fail if I emerge pdftk with FEATURES="-test", and then re-emerge with tests enabled. But on my desktop the tests succeed. Emerging with --debug shows + java -cp target/test-classes:pdftk.jar:/usr/share/junit-4/lib/junit.jar:/usr/share/system-rules/lib/system-rules.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/bcprov/lib/bcprov.jar:/usr/share/commons-lang-3.6/lib/commons-lang.jar:/usr/share/junit-4/lib/junit.ja r:/usr/share/bcprov/lib/bcprov.jar:/usr/share/commons-lang-3.6/lib/commons-lang.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar -Djava.io.tmpdir=/var/tmp/portage/app-text/pdftk-3.3.2-r1/temp -Djava.awt.headless=true org.junit.runner.JUnitCore com.gitlab.pdftk_java.CatTest com.gitlab.pdftk_java.DataTest com.gitlab.pdftk_java.FormTest com.gitlab.pdftk_java.MultipleTest JUnit version 4.13.2-SNAPSHOT […] WARNING: The creator of the input PDF: test/files/issue88.pdf has set an owner password (which is not required to handle this PDF). You did not supply this password. Please respect any copyright. + die 'Running junit failed' and on my desktop + java -cp target/test-classes:pdftk.jar:/usr/share/junit-4/lib/junit.jar:/usr/share/system-rules/lib/system-rules.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/bcprov/lib/bcprov.jar:/usr/share/commons-lang-3.6/lib/commons-lang.jar:/usr/share/junit-4/lib/junit.jar:/usr/share/bcprov/lib/bcprov.jar:/usr/share/commons-lang-3.6/lib/commons-lang.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar -Djava.io.tmpdir=/data-scratch/var-tmp/portage/app-text/pdftk-3.3.2-r1/temp -Djava.awt.headless=true org.junit.runner.JUnitCore com.gitlab.pdftk_java.CatTest com.gitlab.pdftk_java.DataTest com.gitlab.pdftk_java.FormTest com.gitlab.pdftk_java.MultipleTest JUnit version 4.13.2-SNAPSHOT […] WARNING: The creator of the input PDF: test/files/issue88.pdf has set an owner password (which is not required to handle this PDF). You did not supply this password. Please respect any copyright. + einfo 'Running second test' besides the different tmpdir, there appears to difference in the java invocations to run junit. I believe the issue88.pdf, which seems to be pdftk's FormTest.generate_fdf_issue88() unit test, could be a false flag and the culprit somewhere else. I think the next step should be to get junit talking. That is, increase its verbosity. Because right now, it appears to be not producing any logs (at least, I couldn't find one).
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75a9b54214a02b4168f48b04693a51f61f6d01f2 commit 75a9b54214a02b4168f48b04693a51f61f6d01f2 Author: Florian Schmaus <flow@gentoo.org> AuthorDate: 2022-09-10 17:29:14 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2022-09-10 17:29:34 +0000 app-text/pdftk: add missing poppler[cairo] test dep Closes: https://bugs.gentoo.org/869290 Signed-off-by: Florian Schmaus <flow@gentoo.org> app-text/pdftk/pdftk-3.3.2-r1.ebuild | 1 + 1 file changed, 1 insertion(+)