[gnome-photos] tests: Update it to work with the single-binary setup



commit 7de802e2963c547513b4a249d462373ef0a35691
Author: Pranav Kant <pranav913 gmail com>
Date:   Wed Mar 26 02:33:03 2014 +0530

    tests: Update it to work with the single-binary setup
    
    Fallout from 5d91f52ce909c5a28e9d9a1f32020788f6b0801f
    
    https://bugzilla.gnome.org/show_bug.cgi?id=725156

 tests/testutil.py |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/tests/testutil.py b/tests/testutil.py
index da26386..5f32c0a 100644
--- a/tests/testutil.py
+++ b/tests/testutil.py
@@ -49,12 +49,10 @@ def _do_bus_call(method, params):
 def start():
     builddir = os.environ.get('G_TEST_BUILDDIR', None)
     if builddir and not 'TESTUTIL_DONT_START' in os.environ:
-        subprocess.Popen([os.path.join(builddir, '..', 'src', 'gnome-photos-service')],
+        subprocess.Popen([os.path.join(builddir, '..', 'src', 'gnome-photos')],
                          cwd=os.path.join(builddir, '..'))
-        utils.doDelay(2)
-
-    _do_bus_call("Activate", GLib.Variant('(a{sv})', ([],)))
-    utils.doDelay(3)
+    else:
+        _do_bus_call("Activate", GLib.Variant('(a{sv})', ([],)))
 
     app = tree.root.application('gnome-photos')
     focus.application('gnome-photos')


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