Lack of default dpkg diverts causes test_get_file_package_diversion to fail

Bug #2028879 reported by Robie Basak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Apport
Fix Released
High
Unassigned
apport (Ubuntu)
Fix Released
High
Unassigned

Bug Description

tests/integration/test_packaging_apt_dpkg.py::test_get_file_package_diversion fails if it doesn't detect any dpkg diversions. Apparently something (possibly dash?) stopped diverting something, so now there are no diversions in the autopkgtest environment and therefore this test fails.

One option is to add something that does divert something, eg. vim, to the test dependencies. This fixes the issue for now, but isn't really a permanent solution.

Revision history for this message
Benjamin Drung (bdrung) wrote :

The integration test should be skipped in case there is no diversion: https://github.com/canonical/apport/pull/214

For Ubuntu, we should pull in something with diversion to have this test do something useful.

Changed in apport:
milestone: none → 2.28.0
status: New → Triaged
importance: Undecided → High
status: Triaged → In Progress
summary: - Lack of default dpkg diverts causes autopkgtest failure
+ Lack of default dpkg diverts causes test_get_file_package_diversion to
+ fail
Revision history for this message
Benjamin Drung (bdrung) wrote :
Changed in apport:
status: In Progress → Fix Committed
Benjamin Drung (bdrung)
Changed in apport (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 2.27.0-0ubuntu2

---------------
apport (2.27.0-0ubuntu2) mantic; urgency=medium

  * Run only pylint --errors-only and mypy from tests/run-linters (LP: #2028881)
  * Depend on dictionaries-common for having a dpkg diversion test package
    (LP: #2028879)

 -- Benjamin Drung <email address hidden> Fri, 28 Jul 2023 18:59:34 +0200

Changed in apport (Ubuntu):
status: Fix Committed → Fix Released
Benjamin Drung (bdrung)
Changed in apport:
status: Fix Committed → Fix Released
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.