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=f9dacc23d14e7ee76b1e4ed85e51899085b6c4ee

commit f9dacc23d14e7ee76b1e4ed85e51899085b6c4ee
Author: Guillem Jover <[email protected]>
AuthorDate: Fri Nov 11 12:42:21 2022 +0100

    test: Refactor total number of expected known architectures into a variable
    
    When you need to update the numbers for the Dpkg::Arch tests, it's
    easier if they are all at the top.
---
 scripts/t/Dpkg_Arch.t | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/t/Dpkg_Arch.t b/scripts/t/Dpkg_Arch.t
index be83dc2eb..012f67c63 100644
--- a/scripts/t/Dpkg_Arch.t
+++ b/scripts/t/Dpkg_Arch.t
@@ -28,6 +28,7 @@ use_ok('Dpkg::Arch', qw(debarch_to_debtuple 
debarch_to_multiarch
                         get_host_gnu_type
                         get_valid_arches));
 
+my $KNOWN_ARCHES_TOTAL = 554;
 my @valid_arches = get_valid_arches();
 
 sub get_valid_wildcards
@@ -187,7 +188,8 @@ foreach my $arch (@valid_arches) {
               "bijective triplet $triplet to tuple @tuple");
 }
 
-is(scalar @valid_arches, 554, 'expected amount of known architectures');
+is(scalar @valid_arches, $KNOWN_ARCHES_TOTAL,
+    'expected amount of known architectures');
 
 {
     local $ENV{CC} = 'false';

-- 
Dpkg.Org's dpkg

Reply via email to