on xenial help sign in
Make sure to unset QV4_ENABLE_JIT_CACHE environment-variable for autopilot-test runs, due to LP: #1444937.
commit447765441f29ad4b7ed588db0944cc331ff4e7ce authorMirco Müller <mirco.mueller@ubuntu.com> dateTue 12 May 2015, 12:26 (11 years ago) parent78d490b
1 file changed+10−1
tests/autopilot/unity8/fixture_setup.py+10−1
tests/autopilot/unity8/fixture_setup.py+10−1
@@ -27,7 +27,10 @@ import ubuntuuitoolkit
2727from autopilot import introspection
2828from autopilot.matchers import Eventually
2929from testtools.matchers import Equals
30−from ubuntuuitoolkit import fixture_setup
30+from ubuntuuitoolkit import (
31+ fixture_setup,
32+ environment
33+)
3134
3235from unity8 import (
3336 get_binary_path,
@@ -69,6 +72,12 @@ class LaunchUnityWithFakeSensors(fixtures.Fixture):
6972 UBUNTU_PLATFORM_API_TEST_OVERRIDE='sensors'))
7073
7174 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+
7281 restart_thread = threading.Thread(
7382 target=self._restart_unity_with_testability)
7483 restart_thread.start()