2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-08-26 16:46:41 +00:00

test(ci): require the bounded noninteractive apt install form

The guard held the exact unbounded apt-get install text, so the new
timeout wrapper failed it. Require the timeout command and allow the
apt transfer options, so an unbounded install now fails the guard.
This commit is contained in:
Vinícius Ferrão
2026-08-19 16:02:38 -03:00
parent b73a7ca1d3
commit 32b99b9d64
@@ -24,8 +24,8 @@ close($workflow_fh);
for my $package (qw(xcat xcat-probe xcat-test)) {
like(
$contents,
qr{sudo env DEBIAN_FRONTEND=noninteractive apt-get install -y \Q$package\E\b},
"$package installation is noninteractive"
qr{sudo timeout \d+ env DEBIAN_FRONTEND=noninteractive apt-get (?:-o \S+ )*install -y \Q$package\E },
"$package installation is noninteractive and bounded"
);
}