From a1fde97f2d389b264efc198ceaa554fc00c5ae91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Mon, 21 Sep 2026 18:22:52 -0300 Subject: [PATCH] test(build): distinguish native console package expectations --- t/mockbuild-all.t | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/t/mockbuild-all.t b/t/mockbuild-all.t index 7511ca9..2225c5a 100644 --- a/t/mockbuild-all.t +++ b/t/mockbuild-all.t @@ -241,12 +241,14 @@ is(rpm_release(tempdir(CLEANUP => 1), 'nonexistent-pkg'), undef, 'rpm_release is # Not every section is a build target: [common] describes the SHARED repository the # OpenEmbedded Genesis release is published into, which no builder produces. Target sections are # the ones named after a mock config (+epel--, opensuse-leap--). - my @targets = grep { /^[a-z0-9.+-]+-\d+(?:\.\d+)?-[a-z0-9_]+$/ } sort keys %m; + my @targets = grep { !/^openeuler-/ && /^[a-z0-9.+-]+-\d+(?:\.\d+)?-[a-z0-9_]+$/ } sort keys %m; cmp_ok(scalar(@targets), '>=', 1, 'packages-manifest.conf has at least one target section'); ok(!grep({ $_ eq 'common' } @targets), 'the shared-repo section is not treated as a build target'); my @missing = grep { !exists $m{$_}{'conserver-xcat'} } @targets; - is_deeply(\@missing, [], 'conserver-xcat is present in every manifest target section') + is_deeply(\@missing, [], 'conserver-xcat is present in every legacy manifest target section') or diag("missing conserver-xcat in: @missing"); + my @native_missing = grep { /^openeuler-/ && !exists $m{$_}{goconserver} } sort keys %m; + is_deeply(\@native_missing, [], 'native manifest targets retain goconserver'); } # ---- bump_dep_release_suffix: stamps xcat-dep specs, prunes nested xcat-core, idempotent --------