on xenial help sign in
Make sure to unset QV4_ENABLE_JIT_CACHE environment-variable for autopilot-test runs, due to LP: #1444937.
4477654Mirco Müller
tests/autopilot/unity8/fixture_setup.py+10−1
@@ -27,7 +27,10 @@ import ubuntuuitoolkit
27from autopilot import introspection
27from autopilot import introspection
28from autopilot.matchers import Eventually
28from autopilot.matchers import Eventually
29from testtools.matchers import Equals
29from testtools.matchers import Equals
30−from ubuntuuitoolkit import fixture_setup
30+from ubuntuuitoolkit import (
31+ fixture_setup,
32+ environment
33+)
31
34
32from unity8 import (
35from unity8 import (
33 get_binary_path,
36 get_binary_path,
@@ -69,6 +72,12 @@ class LaunchUnityWithFakeSensors(fixtures.Fixture):
69 UBUNTU_PLATFORM_API_TEST_OVERRIDE='sensors'))
72 UBUNTU_PLATFORM_API_TEST_OVERRIDE='sensors'))
70
73
71 self.addCleanup(process_helpers.stop_job, 'unity8')
74 self.addCleanup(process_helpers.stop_job, 'unity8')
75+
76+ # FIXME: because of LP #1444937 unity8 can crash too easily
77+ # when the QML-cache gets stale, thus temporarily disable it
78+ # for the test-runs
79+ environment.unset_initctl_env_var('QV4_ENABLE_JIT_CACHE', global_=True)
80+
72 restart_thread = threading.Thread(
81 restart_thread = threading.Thread(
73 target=self._restart_unity_with_testability)
82 target=self._restart_unity_with_testability)
74 restart_thread.start()
83 restart_thread.start()