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:
@@ -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"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user