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=add10b8d5e013fd00617a54fcc6daeaf32d92b35 commit add10b8d5e013fd00617a54fcc6daeaf32d92b35 Author: Guillem Jover <[email protected]> AuthorDate: Thu Sep 18 23:36:03 2025 +0200 test: Move u-a test plan as early as possible in the test file The plan should be placed at the top of the file after any import or test requirements, for easy readability. --- utils/t/update_alternatives.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/t/update_alternatives.t b/utils/t/update_alternatives.t index 552fb2346..49c562f00 100644 --- a/utils/t/update_alternatives.t +++ b/utils/t/update_alternatives.t @@ -23,6 +23,10 @@ use Dpkg::IPC; use Dpkg::File qw(file_slurp); use Dpkg::Path qw(find_command); +if (! -x "$ENV{builddir}/update-alternatives") { + plan skip_all => 'update-alternatives not available'; +} + my $srcdir = $ENV{srcdir} || '.'; my $tmpdir = 't.tmp/update_alternatives'; my $admindir = File::Spec->rel2abs("$tmpdir/admindir"), @@ -51,10 +55,6 @@ my %paths = ( sleep => find_command('sleep'), ); -if (! -x "$ENV{builddir}/update-alternatives") { - plan skip_all => 'update-alternatives not available'; -} - my $main_link = "$bindir/generic-test"; my $main_name = 'generic-test'; my @choices = ( -- Dpkg.Org's dpkg

