Bug 1169729 - Add prefixes to the mkdtemp calls in runxpcshelltests.py so it is easy to determine the directories that cause 'INFO Failed to remove directory' messages. r=ted
authorRobert Strong <robert.bugzilla@gmail.com>
Mon, 01 Jun 2015 11:52:21 -0700
changeset 277301 fabf2c87d714f90f93c04fcda496628bbaa55f06
parent 277300 23410ef11a4af7c954fa957a478672d5ec19358e
child 277302 a4bb8b6b0acd00d9a3c504e390b0692861e3045d
push id4932
push userjlund@mozilla.com
push dateMon, 10 Aug 2015 18:23:06 +0000
treeherdermozilla-beta@6dd5a4f5f745 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs1169729
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 1169729 - Add prefixes to the mkdtemp calls in runxpcshelltests.py so it is easy to determine the directories that cause 'INFO Failed to remove directory' messages. r=ted
testing/xpcshell/runxpcshelltests.py
--- a/testing/xpcshell/runxpcshelltests.py
+++ b/testing/xpcshell/runxpcshelltests.py
@@ -310,27 +310,27 @@ class XPCShellTestThread(Thread):
         """
           Build the command line arguments for the test file.
           On a remote system, this may be overloaded to use a remote path structure.
         """
         return ['-e', 'const _TEST_FILE = ["%s"];' %
                   name.replace('\\', '/')]
 
     def setupTempDir(self):
-        tempDir = mkdtemp()
+        tempDir = mkdtemp(prefix='xpc-other-')
         self.env["XPCSHELL_TEST_TEMP_DIR"] = tempDir
         if self.interactive:
             self.log.info("temp dir is %s" % tempDir)
         return tempDir
 
     def setupPluginsDir(self):
         if not os.path.isdir(self.pluginsPath):
             return None
 
-        pluginsDir = mkdtemp()
+        pluginsDir = mkdtemp(prefix='xpc-plugins-')
         # shutil.copytree requires dst to not exist. Deleting the tempdir
         # would make a race condition possible in a concurrent environment,
         # so we are using dir_utils.copy_tree which accepts an existing dst
         dir_util.copy_tree(self.pluginsPath, pluginsDir)
         if self.interactive:
             self.log.info("plugins dir is %s" % pluginsDir)
         return pluginsDir
 
@@ -346,17 +346,17 @@ class XPCShellTestThread(Thread):
             profileDir = os.path.join(gettempdir(), self.profileName, "xpcshellprofile")
             try:
                 # This could be left over from previous runs
                 self.removeDir(profileDir)
             except:
                 pass
             os.makedirs(profileDir)
         else:
-            profileDir = mkdtemp()
+            profileDir = mkdtemp(prefix='xpc-profile-')
         self.env["XPCSHELL_TEST_PROFILE_DIR"] = profileDir
         if self.interactive or self.singleFile:
             self.log.info("profile dir is %s" % profileDir)
         return profileDir
 
     def buildCmdHead(self, headfiles, tailfiles, xpcscmd):
         """
           Build the command line arguments for the head and tail files,