1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-09-22 23:17:21 +00:00

try to fix the refresh.

This commit is contained in:
Lukas Ruzicka 2018-06-28 17:35:41 +02:00
parent 988deea680
commit 13b1f40c3b

View File

@ -13,9 +13,7 @@ sub run {
prepare_test_packages;
# sometimes, the test is failing because it cannot
# refresh packages for Gnome Software. Let's do it explicitely.
script_run "su test", 10;
script_run "pkcon refresh force", 60;
script_run "exit", 10;
# get back to the desktop
desktop_vt;
# run the updater
@ -49,9 +47,9 @@ sub run {
# if this is KDE and it had already noticed the notification, we
# will already have the apply button at this point
unless (check_screen 'desktop_package_tool_update_apply', 5) {
# refresh updates
assert_and_click 'desktop_package_tool_update_refresh';
wait_still_screen 20;
assert_and_click 'desktop_package_tool_update_refresh', '', 120;
}
unless (check_screen 'desktop_package_tool_update_apply', 5) {
assert_and_click 'desktop_package_tool_update_refresh', '', 120;
}
# wait for refresh, then apply updates, using a C-style loop so we