Skip to content

Commit

Permalink
tests: add grub2-common to the updates.img
Browse files Browse the repository at this point in the history
  • Loading branch information
KKoukiou committed Nov 15, 2024
1 parent 7b2699c commit b3e1fd8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/vm.install
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ BOTS_DIR = os.path.realpath(f'{__file__}/../../bots')
sys.path.append(BOTS_DIR)

missing_packages = "cockpit-ws cockpit-bridge fedora-logos udisks2 libudisks2 udisks2-lvm2 udisks2-btrfs udisks2-iscsi"
# FIXME: Remove grub2-common once it is available in the default rawhide boot.iso
missing_packages_including_deps = "grub2-common"

from machine.machine_core import machine_virtual

Expand Down Expand Up @@ -83,6 +85,9 @@ def vm_install(image, verbose, quick):
if packages_to_download is not None:
machine.execute(f"dnf download --destdir /var/tmp/build/ {packages_to_download}", stdout=sys.stdout, timeout=300)

if missing_packages_including_deps is not None:
machine.execute(f"dnf download --resolve --destdir /var/tmp/build/ {missing_packages_including_deps}", stdout=sys.stdout, timeout=300)

# download rpms
vm_rpms = machine.execute("find /var/tmp/build -name '*.rpm' -not -name '*.src.rpm'").strip().split()

Expand Down

0 comments on commit b3e1fd8

Please sign in to comment.