[gnome-build-meta/sam/openqa-fixes: 2/3] openqa: Fix Perl-ism




commit 570b9a7f1f5a6e68030f149361d906078326da45
Author: Sam Thursfield <sam thursfield codethink co uk>
Date:   Wed Sep 7 13:25:18 2022 +0200

    openqa: Fix Perl-ism
    
    One cannot use `true` to mean "true", but `1` is OK.
    
    Avoids the following error:
    
        Unquoted string "true" may clash with future reserved word at /tests/lib/gnomeutils.pm line 14.

 openqa/lib/gnomeutils.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/openqa/lib/gnomeutils.pm b/openqa/lib/gnomeutils.pm
index 75fd7b2ef..0eb396c22 100644
--- a/openqa/lib/gnomeutils.pm
+++ b/openqa/lib/gnomeutils.pm
@@ -11,7 +11,7 @@ sub run_command {
     send_key('esc');
     wait_still_screen(2);
 
-    send_key($desktop_runner_hotkey, wait_screen_change => true);
+    send_key($desktop_runner_hotkey, wait_screen_change => 1);
 
     assert_screen('desktop_runner', $desktop_runner_timeout);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]