tests require python3 which is not default in rocky 8

This commit is contained in:
Trevor Cooper 2024-07-22 00:00:06 -07:00
parent 9963584380
commit 8d332ad1eb
Signed by: tcooper
GPG Key ID: 52364D7BBCEB35B8

View File

@ -19,6 +19,10 @@ sub run {
# autocloud used to use, via tunir and this tunir config:
# https://infrastructure.fedoraproject.org/cgit/ansible.git/tree/roles/autocloud/backend/files/fedora.txt?id=6e7c1b90593df8371fd34ed9484bd4da119236d3
my $self = shift;
# tests require python3 which is not default installed in Rocky 8
if (get_version_major() < 9) {
assert_script_run("dnf install -y python3", timeout => 240);
}
# we need to use script_run as regular user
assert_script_run "chmod ugo+w /dev/" . $serialdev;
# let's go to another tty and login as regular user