2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2026-09-09 22:46:44 +00:00

test(xcat-dep): capture --install-deps skipping the emulation packages

The two assertions fail against the previous package list and pass with it,
so a later edit cannot drop the binfmt handler that a foreign chroot needs.
This commit is contained in:
Vinícius Ferrão
2026-09-06 00:26:59 -03:00
parent 4e71c71a55
commit 5651e75875
+6
View File
@@ -603,6 +603,12 @@ STUB
for my $need (qw(libfile-slurper-perl libparallel-forkmanager-perl sbuild schroot apt-utils dpkg-dev)) {
ok(scalar(grep { $_ eq $need } @pkgs), "prerequisites include $need");
}
# ensure_foreign_arch_support() refuses to bootstrap a foreign chroot without the binfmt
# handler and names these two packages, so --install-deps has to be the fix it points at.
for my $need (qw(qemu-user-static binfmt-support)) {
ok(scalar(grep { $_ eq $need } @pkgs), "prerequisites include $need");
}
my @cmd = install_deps_command();
is($cmd[0], 'apt-get', 'installs with apt-get');
ok(scalar(grep { $_ eq '-y' } @cmd), '... non-interactively');