on xenial help sign in
Added remote autopilot app starter for indicators-client
commit7356f327d434743afd40db5cb8bdd3cef13ef2b9 authorNick Dedekind <nicholas.dedekind@gmail.com> dateThu 4 Jul 2013, 11:34 (13 years ago) parentf3837ee
1 file changed+10−3
tests/autopilot/indicators_client/tests/__init__.py+10−3
tests/autopilot/indicators_client/tests/__init__.py+10−3
@@ -40,12 +40,19 @@ class IndicatorsTestCase(AutopilotTestCase):
4040
4141 def setUp(self):
4242 self.pointing_device = Pointer(self.input_device_class.create())
43− self.launch_test_local()
4443 super(IndicatorsTestCase, self).setUp()
44+ if os.path.realpath(__file__).startswith("/usr/"):
45+ self.launch_test_installed()
46+ else:
47+ self.launch_test_local()
4548
4649 def launch_test_local(self):
47− os.environ['QML2_IMPORT_PATH'] = "../../builddir/plugins"
48− self.app = self.launch_test_application("../../builddir/src/Panel/Indicators/client/indicators-client")
50+ os.environ['QML2_IMPORT_PATH'] = "../../builddir/plugins:../../builddir/modules"
51+ self.app = self.launch_test_application("../../builddir/src/Panel/Indicators/client/indicators-client", app_type='qt')
52+
53+ def launch_test_installed(self):
54+ os.environ['QML2_IMPORT_PATH'] = "/usr/share/unity8/plugins:/usr/share/unity8/modules"
55+ self.app = self.launch_test_application("indicators-client", app_type='qt')
4956
5057 def skipWrapper(*args, **kwargs):
5158 pass