autopkgtest broken on deb822 only testbeds

Bug #2062622 reported by Skia
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt-clone (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Running apt-clone autopkgtest on a deb822-only such as a fresh Noble image breaks the tests, because they test for the presence of `/etc/apt/sources.list` on the system they run (not the embedded mocked test data).
Checking for another file would fix this, or removing the "real system" test, since this is heavily dependent on the testbed, and thus quite brittle.

Here is an example of broken run: https://autopkgtest.ubuntu.com/results/autopkgtest-noble/noble/arm64/a/apt-clone/20240419_132003_66310@/log.gz

Revision history for this message
Skia (hyask) wrote :

Here is a debdiff fixing the test by checking `/etc/passwd` instead of `/etc/apt/sources.list`.

Revision history for this message
Nick Rosbrook (enr0n) wrote :

Hm, it doesn't look like the tested function (_find_unowned_in_etc()) is actually used anywhere besides this test...

But that's something to sort out in the next devel series I guess. This should do the trick for now.

Nick Rosbrook (enr0n)
Changed in apt-clone (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt-clone - 0.4.3+nmu2ubuntu2

---------------
apt-clone (0.4.3+nmu2ubuntu2) noble; urgency=medium

  * Fix tests on deb822-only system (LP: #2062622)
    On those systems, `/etc/apt/sources.list` doesn't exist. Let's check for
    `/etc/passwd` instead in the real system test.

 -- Florent 'Skia' Jacquet <email address hidden> Fri, 19 Apr 2024 18:40:41 +0200

Changed in apt-clone (Ubuntu):
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.