Bug 1393229 - Log browser env for Talos runs. r=jmaher draft
authorJ. Ryan Stinnett <jryans@gmail.com>
Tue, 22 Aug 2017 13:04:52 -0500
changeset 651589 f63255f34f423c3b19db15d6195268fec476b92a
parent 650560 08c538a185408e3f79fc7a0a08fba042ebebc689
child 651590 d3de956448727b08d7e75cc22bf5d05f5bcd0f62
push id75772
push userbmo:jryans@gmail.com
push dateWed, 23 Aug 2017 21:26:48 +0000
reviewersjmaher
bugs1393229
milestone57.0a1
Bug 1393229 - Log browser env for Talos runs. r=jmaher Output the environment that will be used to launch the browser. This ensures we catch any last minute tweaks, like enabling Stylo or other features. MozReview-Commit-ID: 98Rz8gM9zd7
testing/talos/talos/talos_process.py
--- a/testing/talos/talos/talos_process.py
+++ b/testing/talos/talos/talos_process.py
@@ -1,13 +1,14 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this file,
 # You can obtain one at http://mozilla.org/MPL/2.0/.
 
 import time
+import pprint
 import psutil
 import mozcrash
 import traceback
 from mozprocess import ProcessHandler
 from threading import Event
 
 from mozlog import get_proxy_logger
 
@@ -102,16 +103,18 @@ def run_browser(command, minidump_dir, t
     Returns a ProcessContext instance, with available output and pid used.
     """
     context = ProcessContext()
     first_time = int(time.time()) * 1000
     wait_for_quit_timeout = 5
     event = Event()
     reader = Reader(event)
 
+    LOG.info("Using env: %s" % pprint.pformat(kwargs['env']))
+
     kwargs['storeOutput'] = False
     kwargs['processOutputLine'] = reader
     kwargs['onFinish'] = event.set
     proc = ProcessHandler(command, **kwargs)
     reader.proc = proc
     proc.run()
     LOG.process_start(proc.pid, ' '.join(command))
     try: