• Bug#1110195: borgbackup2: 'unit' autopkgtests fail

    From Simon Chopin@21:1/5 to All on Thu Jul 31 18:40:01 2025
    Source: borgbackup2
    Version: 2.0.0b14-3build1
    Severity: normal
    X-Debbugs-Cc: [email protected]

    Hi,

    Both in Ubuntu and Debian, the 'unit' and 'unit-nofuse' tests fail.

    I have a solution that involves tweaking the way pytest is called as
    well as patching a handful of tests to make it work, I'll post the
    debdiff here as a follow-up.

    Cheers,
    Simon

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Simon Chopin@21:1/5 to All on Thu Jul 31 19:40:01 2025
    This is a multi-part MIME message sent by reportbug.


    Source: borgbackup2
    Followup-For: Bug #1110195
    X-Debbugs-Cc: [email protected]

    Attached is said patch, I'll also be uploading it to Ubuntu.

    -- System Information:
    Debian Release: trixie/sid
    APT prefers plucky-updates
    APT policy: (500, 'plucky-updates'), (500, 'plucky-security'), (500, 'plucky'), (100, 'plucky-proposed')
    Architecture: amd64 (x86_64)

    Kernel: Linux 6.14.0-24-generic (SMP w/12 CPU threads; PREEMPT)
    Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    diff -Nru borgbackup2-2.0.0b18/debian/changelog borgbackup2-2.0.0b18/debian/changelog
    --- borgbackup2-2.0.0b18/debian/changelog 2025-07-18 12:45:37.000000000 +0200
    +++ borgbackup2-2.0.0b18/debian/changelog 2025-07-31 19:30:53.000000000 +0200
    @@ -1,3 +1,9 @@
    +borgbackup2 (2.0.0b18-3) UNRELEASED; urgency=medium
    +
    + * fix running unit tests in autopkgtests (Closes: #1110195, LP: #2118916)
    +
    + -- Simon Chopin <[email protected]> Thu, 31 Jul 2025 19:30:53 +0200
    +
    borgbackup2 (2.0.0b18-2) unstable; urgency=medium

    * Merge borgbackup 1.4.1-4
    diff -Nru borgbackup2-2.0.0b18/debian/patches/0008-tests-tweak-some-unit-tests-when-using-the-installed.patch borgbackup2-2.0.0b18/debian/patches/0008-tests-tweak-some-unit-tests-when-using-the-installed.patch
    --- borgbackup2-2.0.0b18/debian/patches/0008-tests-tweak-some-unit-tests-when-using-the-installed.patch 1970-01-01 01:00:00.000000000 +0100
    +++ borgbackup2-2.0.0b18/debian/patches/0008-tests-tweak-some-unit-tests-when-using-the-installed.patch 2025-07-31 19:07:59.000000000 +0200
    @@ -0,0 +1,61 @@
    +From: Simon Chopin <[email protected]