From dd946b09606b87a795ebda7540f3cf6b6c34b9f2 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 6 Nov 2023 20:36:18 -1000 Subject: [PATCH] desktop_printing: adjust to g-t-e dying after print It seems like in current Rawhide (since about Saturday - possibly due to new mesa?), g-t-e quite often dies after we print. This messes up the test because we wind up quitting the terminal instead of g-t-e. Let's handle it as a soft failure instead, until we can figure out why g-t-e is dying. Signed-off-by: Adam Williamson --- tests/desktop_printing.pm | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/tests/desktop_printing.pm b/tests/desktop_printing.pm index fc26b1ed..ae358846 100644 --- a/tests/desktop_printing.pm +++ b/tests/desktop_printing.pm @@ -81,12 +81,15 @@ sub run { } } assert_and_click "printing_print"; - wait_still_screen 5; - save_screenshot; - # Exit the application - send_key "alt-f4"; - wait_still_screen 5; - save_screenshot; + # In Rawhide from 2023-11-04 onwards, sometimes g-t-e has + # already died somehow at this point + if (check_screen "apps_run_terminal", 10) { + record_soft_failure "gnome-text-editor died!" + } + else { + # Exit the application + send_key "alt-f4"; + } # Get the name of the printed file. The path location depends # on the selected method. We do this on a VT because there's