From 3bb3a0aefb3b438f8282a38b460c81ae7f77754f Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Fri, 29 Jun 2018 12:03:42 +0200 Subject: [PATCH] Move condition. --- tests/upgrade_preinstall.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/upgrade_preinstall.pm b/tests/upgrade_preinstall.pm index 0a769139..4f2a2001 100644 --- a/tests/upgrade_preinstall.pm +++ b/tests/upgrade_preinstall.pm @@ -24,11 +24,12 @@ sub run { my $update_command = 'dnf -y install dnf-plugin-system-upgrade'; assert_script_run $update_command, 600; + + if (get_var("ASSUME_BOOT",0) == 1) { + desktop_vt; + } } -if (get_var("ASSUME_BOOT",0) == 1) { - desktop_vt; -} sub test_flags { return { fatal => 1 };