Bug 1256973. Simplify assignment to result_callbacks; r=maja_zf a=test-only
authorNathalie Rud <nathalier@gmail.com>
Wed, 16 Mar 2016 00:10:49 +0200
changeset 323509 10de925450161fcc1352d80579bfc5a6657d4a23
parent 323508 b206ad099d989a5aed8756138d35fd51a1c17fdf
child 323510 bc92792d891b14dce5a206bcf1f4b495a304fab5
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmaja_zf, test-only
bugs1256973
milestone47.0a2
Bug 1256973. Simplify assignment to result_callbacks; r=maja_zf a=test-only MozReview-Commit-ID: GXkUNhpI6Wf
testing/marionette/harness/marionette/runner/base.py
--- a/testing/marionette/harness/marionette/runner/base.py
+++ b/testing/marionette/harness/marionette/runner/base.py
@@ -559,17 +559,17 @@ class BaseMarionetteTestRunner(object):
         self.sdcard = sdcard
         self.sources = sources
         self.server_root = server_root
         self.this_chunk = this_chunk
         self.total_chunks = total_chunks
         self.mixin_run_tests = []
         self.manifest_skipped_tests = []
         self.tests = []
-        self.result_callbacks = result_callbacks if result_callbacks is not None else []
+        self.result_callbacks = result_callbacks or []
         self._adb_host = adb_host
         self._adb_port = adb_port
         self.prefs = prefs or {}
         self.test_tags = test_tags
         self.startup_timeout = startup_timeout
         self.workspace = workspace
         # If no workspace is set, default location for logcat and gecko.log is .
         # and default location for profile is TMP