Bug 1384906 - Use newline in TEST-START and TEST-END log entries; r?automatedtester draft
authorAndreas Tolfsen <ato@sny.no>
Thu, 27 Jul 2017 13:31:49 +0100
changeset 616720 b650094c6e0ff670a65538e839499bac5c283191
parent 616647 e5693cea1ec944ca077c7a46c5f127c828a90f1b
child 639580 85b1217a9910e8f00a7f9e906a035c8d681d1a67
push id70798
push userbmo:ato@sny.no
push dateThu, 27 Jul 2017 12:32:53 +0000
reviewersautomatedtester
bugs1384906
milestone56.0a1
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