[FFe] Implement support for "buttercup_eval"

Bug #2008919 reported by Sergio Durigan Junior
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dh-elpa (Debian)
New
Unknown
dh-elpa (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

dh-elpa supports the "ert_eval" directive inside d/elpa-test, which allows the package to provide custom Elisp code to be executed before ERT is invoked. Unfortunately, a similar feature is missing for buttercup tests. This means that, whenever a package uses buttercup to run its tests, the maintainer needs to override dh_elpa_test and invoke buttercup by hand. This, however, only works during build time; dh-elpa is also used to run autopkgtest, and in that specific scenario it's not possible to execute custom Elisp code using buttercup at all.

Why is this important, you might ask. Well, I've been investigating a bug in Emacs 28.2's native compilation mechanism which affects a bunch of packages (see bug #2006963 for more details). One of those affected packages is flycheck, which uses buttercup. I uploaded a fix for a flycheck FTBFS which addresses the problem, but the package still fails its autopkgtest because of the problem mentioned above.

Long story short, I've implemented the support for a new dh-elpa directive called "buttercup_eval" and would like it to Lunar. I also proposed the feature to Debian here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1032202

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

debdiff containing the proposed change.

Revision history for this message
Steve Langasek (vorlon) wrote :

approved

Changed in dh-elpa (Ubuntu):
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dh-elpa - 2.0.16ubuntu2

---------------
dh-elpa (2.0.16ubuntu2) lunar; urgency=medium

  * dh_elpa_test: Implement new buttercup_eval directive.
    (LP: #2008919)

 -- Sergio Durigan Junior <email address hidden> Wed, 01 Mar 2023 13:08:44 -0500

Changed in dh-elpa (Ubuntu):
status: Triaged → Fix Released
Changed in dh-elpa (Debian):
status: Unknown → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.