Bug 1166239 - Free result_modifiers so the MarionetteTestResult object will not leak. r=ato
authorShing Lyu<slyu@mozilla.com>
Mon, 07 Sep 2015 15:12:35 +0800
changeset 293953 2e38346f89af2e73dcb0b943fdf31b38b480e153
parent 293898 2bb231870f2d4ac66fea59f40e8d3e893816803c
child 293954 298d7dcbda70c49468bab1dbf90c890819cafe20
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersato
bugs1166239
milestone43.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1166239 - Free result_modifiers so the MarionetteTestResult object will not leak. r=ato
testing/marionette/client/marionette/runner/base.py
--- a/testing/marionette/client/marionette/runner/base.py
+++ b/testing/marionette/client/marionette/runner/base.py
@@ -980,16 +980,18 @@ setReq.onerror = function() {
                 self.failed += len(results.unexpectedSuccesses)
                 self.unexpected_successes += len(results.unexpectedSuccesses)
                 for failure in results.unexpectedSuccesses:
                     self.failures.append((results.getInfo(failure), failure.output, 'TEST-UNEXPECTED-PASS'))
             if hasattr(results, 'expectedFailures'):
                 self.todo += len(results.expectedFailures)
 
             self.mixin_run_tests = []
+            for result in self.results:
+                result.result_modifiers = []
 
     def run_test_set(self, tests):
         if self.shuffle:
             random.seed(self.shuffle_seed)
             random.shuffle(tests)
 
         for test in tests:
             self.run_test(test['filepath'], test['expected'], test['test_container'])