tests: PV Grub: ensure that latest packages are installed

Flush yum case before that.
This commit is contained in:
Marek Marczykowski-Górecki 2015-11-25 03:16:24 +01:00
parent 64343572c1
commit aeec42dacf
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -1070,7 +1070,8 @@ class TC_40_PVGrub(qubes.tests.SystemTestsMixin):
def install_packages(self, vm): def install_packages(self, vm):
if self.template.startswith('fedora-'): if self.template.startswith('fedora-'):
cmd_install1 = 'yum install -y qubes-kernel-vm-support grub2-tools' cmd_install1 = 'yum clean expire-cache && ' \
'yum install -y qubes-kernel-vm-support grub2-tools'
cmd_install2 = 'yum install -y kernel kernel-devel' cmd_install2 = 'yum install -y kernel kernel-devel'
cmd_update_grub = 'grub2-mkconfig -o /boot/grub2/grub.cfg' cmd_update_grub = 'grub2-mkconfig -o /boot/grub2/grub.cfg'
elif self.template.startswith('debian-'): elif self.template.startswith('debian-'):