on xenial help sign in
Pass the testability as an argument.
9307e2eLeo Arias
tests/autopilot/unity8/fixture_setup.py+2−5
@@ -48,15 +48,12 @@ class LaunchDashApp(fixtures.Fixture):
48 self.application_proxy = self.launch_application()
48 self.application_proxy = self.launch_application()
49
49
50 def launch_application(self):
50 def launch_application(self):
51− self.useFixture(
52− toolkit_fixtures.InitctlEnvironmentVariable(
53− QT_LOAD_TESTABILITY='1'))
54−
55 binary_arg = 'BINARY={}'.format(self.binary_path)
51 binary_arg = 'BINARY={}'.format(self.binary_path)
52+ testability_arg = 'QT_LOAD_TESTABILITY={}'.format(1)
56 env_args = [
53 env_args = [
57 '{}={}'.format(key, value) for key, value in self.variables.items()
54 '{}={}'.format(key, value) for key, value in self.variables.items()
58 ]
55 ]
59− all_args = [binary_arg] + env_args
56+ all_args = [binary_arg, testability_arg] + env_args
60
57
61 pid = process_helpers.start_job('unity8-dash', *all_args)
58 pid = process_helpers.start_job('unity8-dash', *all_args)
62 return introspection.get_proxy_object_for_existing_process(
59 return introspection.get_proxy_object_for_existing_process(