From 6b140fd4addeb6f496b456dfbb36503c8dbef71a Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 22 Sep 2021 14:05:02 -0700 Subject: [PATCH] Allow twice as long for cockpit log refresh After we change the log level in Cockpit, on aarch64, it seems to take quite a long time to reload the messages. This allows twice as long, with a soft failure if we get into the back half. Signed-off-by: Adam Williamson --- tests/server_cockpit_basic.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/server_cockpit_basic.pm b/tests/server_cockpit_basic.pm index 3db6f021..f9f79c66 100644 --- a/tests/server_cockpit_basic.pm +++ b/tests/server_cockpit_basic.pm @@ -21,7 +21,13 @@ sub run { type_string "info\n"; wait_still_screen 5; # now click an entry - assert_and_click "cockpit_logs_entry"; + if (check_screen "cockpit_logs_entry", 30) { + click_lastmatch; + } + else { + assert_and_click "cockpit_logs_entry"; + record_soft_failure "Log refresh took a long time"; + } # check we get to the appropriate detail screen assert_screen "cockpit_logs_detail"; # go to the services screen