[gnome-boxes] tests: Faster booting of machine



commit 853ff6ae27d30e8ccfa7535e9a1150784fa1d7e4
Author: Vladimir Benes <benesv email cz>
Date:   Thu Jun 18 22:57:54 2015 +0200

    tests: Faster booting of machine
    
    Press "Return" key 3 times instead of sleeping for 3 seconds before
    pressing "Return" key for the first time. This usually saves up to
    2 seconds in every single machine installation.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=751042

 tests/steps/creation.py |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/tests/steps/creation.py b/tests/steps/creation.py
index a4cb80c..4c38608 100644
--- a/tests/steps/creation.py
+++ b/tests/steps/creation.py
@@ -15,7 +15,11 @@ def create_machine_from_menuitem(context, name, item):
     context.execute_steps(u"""
         * Create new box from menu "%s"
         * Press "Create"
-        * Wait for "sleep 3" end
+        * Wait for "sleep 1" end
+        * Hit "Enter"
+        * Wait for "sleep 1" end
+        * Hit "Enter"
+        * Wait for "sleep 1" end
         * Hit "Enter"
         * Save IP for machine "%s"
         * Press "back" in "%s" vm
@@ -89,7 +93,9 @@ def create_machine_from_menuitem_no_wait(context, name, item):
     context.execute_steps(u"""
         * Create new box from menu "%s"
         * Press "Create"
-        * Wait for "sleep 3" end
+        * Wait for "sleep 1" end
+        * Hit "Enter"
+        * Wait for "sleep 1" end
         * Hit "Enter"
         * Press "back" in "%s" vm
         """ %(item, name))


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