Bug 1384906 - Use newline in TEST-START and TEST-END log entries; r=automatedtester
☠☠ backed out by 6025770ffa49 ☠ ☠
authorAndreas Tolfsen <ato@sny.no>
Thu, 27 Jul 2017 13:31:49 +0100
changeset 420179 33aa6e07a9d68e5ad2b71fe268f9ce11d0c5f1dd
parent 420178 01ee56745069f2018060ebe46a0b016e6f86a709
child 420180 ef7dac1fb60080478040a1f33510c3da65784ae5
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersautomatedtester
bugs1384906
milestone56.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 1384906 - Use newline in TEST-START and TEST-END log entries; r=automatedtester MozReview-Commit-ID: vxqw8AaxnS
testing/marionette/harness/marionette_harness/marionette_test/testcases.py
--- a/testing/marionette/harness/marionette_harness/marionette_test/testcases.py
+++ b/testing/marionette/harness/marionette_harness/marionette_test/testcases.py
@@ -306,29 +306,29 @@ class MarionetteTestCase(CommonTestCase)
                                       methodName=testname,
                                       filepath=filepath,
                                       testvars=testvars,
                                       **kwargs))
 
     def setUp(self):
         super(MarionetteTestCase, self).setUp()
         self.marionette.test_name = self.test_name
-        self.marionette.execute_script("dump('TEST-START: {0}')"
+        self.marionette.execute_script("dump('TEST-START: {0}\n')"
                                        .format(self.test_name),
                                        sandbox="simpletest")
 
     def tearDown(self):
         # In the case no session is active (eg. the application was quit), start
         # a new session for clean-up steps.
         if not self.marionette.session:
             self.marionette.start_session()
 
         if not self.marionette.crashed:
             try:
-                self.marionette.execute_script("dump('TEST-END: {0}')"
+                self.marionette.execute_script("dump('TEST-END: {0}\n')"
                                                .format(self.test_name),
                                                sandbox="simpletest")
                 self.marionette.test_name = None
             except (MarionetteException, IOError):
                 # We have tried to log the test end when there is no listener
                 # object that we can access
                 pass