Commit 7de802e2 authored by Pranav Kant's avatar Pranav Kant Committed by Debarshi Ray

tests: Update it to work with the single-binary setup

Fallout from 5d91f52c

https://bugzilla.gnome.org/show_bug.cgi?id=725156
parent eb222e2b
......@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment