From 1cf138ccb2642c7ea1861bcdd70d5fd5c943c7a3 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 17 Dec 2024 14:19:57 -0800 Subject: [PATCH] gnome-text-editor: allow saved file always to be in either place It's back in ~/Documents on Rawhide. Let's stop trying to guess when it's where and just be happy with it being in either place. Signed-off-by: Adam Williamson --- tests/applications/gnome-text-editor/new_file.pm | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tests/applications/gnome-text-editor/new_file.pm b/tests/applications/gnome-text-editor/new_file.pm index dc2f784c..23b8bd39 100644 --- a/tests/applications/gnome-text-editor/new_file.pm +++ b/tests/applications/gnome-text-editor/new_file.pm @@ -50,14 +50,8 @@ sub run { assert_screen("gte_file_saved"); # Check that the file has been created $self->root_console(tty => 3); - # The test started to fail on Silverblue - # because the target directory changed. - if (get_var("SUBVARIANT") eq "Silverblue") { - assert_script_run("ls /home/test/Documents/list.md"); - } - else { - assert_script_run("ls /home/test/list.md"); - } + # it might be in either of these places depending on version / release + assert_script_run("ls /home/test/Documents/list.md || ls /home/test/list.md"); desktop_vt(); }