Bug#941330: undocumented limitation/dependency in dh_elpa_test
Package: dh-elpa
Version: 2.0.2~bpo10+2
Severity: normal
dh-elpa-test appears to have an undocumented hard dependency on
(ert-run-test-batch-and-exit), specifically "-and-exit", and this
one-function expression must appear as the final line of the defined
ert_helper.
Steps to reproduce:
d/elpa-test: ert_helper = debian/ert-helper.el
debian/ert-helper.el: (ert-run-tests-batch)
Then run "dh_elpa_test" in a src:pkg with failing tests.
Result:
ERT test output failure, but there's no big block of
"dh_elpa_test…exit code 1" in the shell, and the exit code is 0 (PASS).
Expected result:
Big block of "dh_elpa_test: emacs -batch…-l debian/ert-helper.el returned exit code 1" with an exit code 2 in the shell (FAIL).
--
If this is a documentation bug, then the above requirement should be documented, plus it would be nice to have an example snippet of how to kill emacs from within ert-helper.el in such a way that status FAILED is correctly passed through.
Regards,
Nicholas
-- System Information:
Debian Release: 10.1
APT prefers stable-debug
APT policy: (500, 'stable-debug'), (500, 'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.19.72-rt25 (SMP w/4 CPU cores; PREEMPT)
Kernel taint flags: TAINT_USER <- I have to disable an i915 feature due to buggy BIOS
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages dh-elpa depends on:
ii debhelper 12.1.1
ii dh-make-perl 0.105
ii emacs 1:26.1+1-3.2+deb10u1
ii emacs-gtk [emacs] 1:26.1+1-3.2+deb10u1
ii libarray-utils-perl 0.5-1
ii libconfig-tiny-perl 2.23-1
ii libdebian-source-perl 0.105
ii libdpkg-perl 1.19.7
ii libfile-find-rule-perl 0.34-1
ii libtext-glob-perl 0.10-1
ii perl 5.28.1-6
dh-elpa recommends no packages.
dh-elpa suggests no packages.
-- no debconf information
Reply to: