From 47b2855d55087da03a4b2b303c9c35938521befa Mon Sep 17 00:00:00 2001 From: Michel Normand Date: Wed, 22 Mar 2017 09:06:03 -0400 Subject: [PATCH] Add --refresh to force dnf synchronisation because started qcow2 may be obsolete for update repo. Note: despite deprecated "update" alias, continue to use it rather than "upgrade" command. Signed-off-by: Michel Normand --- tests/upgrade_preinstall.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/upgrade_preinstall.pm b/tests/upgrade_preinstall.pm index 91522dff..2b5788e8 100644 --- a/tests/upgrade_preinstall.pm +++ b/tests/upgrade_preinstall.pm @@ -6,7 +6,7 @@ use utils; sub run { my $self = shift; # upgrader should be installed on up-to-date system - assert_script_run 'dnf -y update', 1800; + assert_script_run 'dnf -y update --refresh', 1800; script_run "reboot", 0; # handle bootloader, if requested