This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=894b324e119cba4642cd37db3cf3f91e2169f538 commit 894b324e119cba4642cd37db3cf3f91e2169f538 Author: Guillem Jover <[email protected]> AuthorDate: Wed Dec 7 18:30:11 2022 +0100 test: Skip dpkg-source tests if xz is not present --- scripts/t/dpkg_source.t | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/t/dpkg_source.t b/scripts/t/dpkg_source.t index d251c1d2e..68b9729e4 100644 --- a/scripts/t/dpkg_source.t +++ b/scripts/t/dpkg_source.t @@ -16,8 +16,8 @@ use strict; use warnings; -use Test::More tests => 8; -use Test::Dpkg qw(:paths test_neutralize_checksums); +use Test::More; +use Test::Dpkg qw(:needs :paths test_neutralize_checksums); use File::Spec::Functions qw(rel2abs); use File::Compare; @@ -27,6 +27,10 @@ use Dpkg::File; use Dpkg::IPC; use Dpkg::Substvars; +test_needs_command('xz'); + +plan tests => 8; + my $srcdir = rel2abs($ENV{srcdir} || '.'); my $datadir = "$srcdir/t/dpkg_source"; my $tmpdir = test_get_temp_path(); -- Dpkg.Org's dpkg

