Bug 1174766 - Modify test_profile_management to use a clean profile to avoid contention on windows.;r=ato
authorChris Manchester <cmanchester@mozilla.com>
Wed, 24 Jun 2015 10:16:27 -0700
changeset 250149 585f52ceab5c45d52a715e18388cea03ece8d16a
parent 250148 d2d535a3fdbf0b4ed2d3e3541b30fbb91a03c367
child 250150 1b09041ef8f256f712d6bb132083ac386c35ab0d
push id28947
push usercbook@mozilla.com
push dateThu, 25 Jun 2015 09:10:19 +0000
treeherdermozilla-central@0b2f5e8b7be5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersato
bugs1174766
milestone41.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 1174766 - Modify test_profile_management to use a clean profile to avoid contention on windows.;r=ato
testing/marionette/client/marionette/tests/unit/test_profile_management.py
--- a/testing/marionette/client/marionette/tests/unit/test_profile_management.py
+++ b/testing/marionette/client/marionette/tests/unit/test_profile_management.py
@@ -55,9 +55,12 @@ class TestLog(MarionetteTestCase):
         bool_value = self.marionette.execute_script("""
           Services.prefs.setBoolPref('marionette.test.restart', false);
           return Services.prefs.getBoolPref('marionette.test.restart');
         """)
         self.assertFalse(bool_value)
 
         # A "hard" restart is still possible (i.e., our instance is still able
         # to kill the browser).
-        self.marionette.restart()
+        # Note we need to clean the profile at this point so the old browser
+        # process doesn't interfere with the new one on Windows when it attempts
+        # to access the profile on startup.
+        self.marionette.restart(clean=True)