@@ -40,12 +40,19 @@ class IndicatorsTestCase(AutopilotTestCase):
41 def setUp(self):
41 def setUp(self):
42 self.pointing_device = Pointer(self.input_device_class.create())
42 self.pointing_device = Pointer(self.input_device_class.create())
43− self.launch_test_local()
44 super(IndicatorsTestCase, self).setUp()
43 super(IndicatorsTestCase, self).setUp()
44+ if os.path.realpath(__file__).startswith("/usr/"):
45+ self.launch_test_installed()
47+ self.launch_test_local()
46 def launch_test_local(self):
49 def launch_test_local(self):
47− os.environ['QML2_IMPORT_PATH'] = "../../builddir/plugins"
50+ os.environ['QML2_IMPORT_PATH'] = "../../builddir/plugins:../../builddir/modules"
48− self.app = self.launch_test_application("../../builddir/src/Panel/Indicators/client/indicators-client")
51+ self.app = self.launch_test_application("../../builddir/src/Panel/Indicators/client/indicators-client", app_type='qt')
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')
50 def skipWrapper(*args, **kwargs):
57 def skipWrapper(*args, **kwargs):