1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-05-02 07:31:33 +00:00
os-autoinst-distri-fedora/tests/check_packages_signed.pm
Adam Williamson d1882b9e89 Add a post-install 'are all packages signed' check (#369)
This came up in blocker bug meeting discussion today. We really
should check that all packages are signed after a default install.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-04-01 15:43:59 -07:00

24 lines
506 B
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
sub run {
my $self = shift;
if (not(check_screen "root_console", 0)) {
$self->root_console(tty => 4);
}
assert_screen "root_console";
# for aarch64 non-english tests
console_loadkeys_us;
die("Unsigned package(s) found!") unless (script_run 'rpm -qa --queryformat "%{NAME} %{RSAHEADER:pgpsig}\n" | grep -v gpg-pubkey | grep "(none)"');
}
sub test_flags {
return {fatal => 1};
}
1;
# vim: set sw=4 et: